Answers for "c++ init 2d vector with size"

C++
3

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