Answers for "initialize a 2d matrix with variable size c++"

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