initialising a vector of vectors c++ code example
Example 1: initialize 3d vector c++
vector<vector<vector<double>>> f(3, vector<vector<double>>(4, vector<double>(5)));
Example 2: initializing 2d vector
vector<vector<int> > vec( n , vector<int> (m, 0));