howt o initialize 3d vector in c++
vector<vector<vector<int>>> dp(n+1,vector<vector<int>>(n+1,vector<int>(n+1,-1)));
howt o initialize 3d vector in c++
vector<vector<vector<int>>> dp(n+1,vector<vector<int>>(n+1,vector<int>(n+1,-1)));
initialize 3d vector c++
vector<vector<vector<double>>> f(3, vector<vector<double>>(4, vector<double>(5)));
c++ initialize size of 3d vector
vector<vector<vector<double>>> f(3, vector<vector<double>>(4, vector<double>(5)));
initialize vector c++
// CPP program to create an empty vector
// and push values one by one.
#include <bits/stdc++.h>
using namespace std;
int main()
{
int n = 3;
// Create a vector of size n with
// all values as 10.
vector<int> vect(n, 10);
for (int x : vect)
cout << x << " ";
return 0;
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us