Answers for "initialzing a 2d vector in cpp"

C++
2

initialzing a 2d vector in cpp

// Create a vector containing n row and m columns
  vector<vector<int> > vec( n , vector<int> (m, 0));
Posted by: Guest on January-27-2021

Browse Popular Code Answers by Language