Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

resize two dimensional vector c++

//vector<vector<int>> M;
//int m = number of rows, n = number of columns;
M.resize(m, vector<int>(n));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #resize #dimensional #vector
ADD COMMENT
Topic
Name
6+1 =