Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

finding size of columns and rows in 2d vector c++

vector<vector < int > > matrix;

cout << "Row's Length: " << matrix.size();
cout<< "Column's Length: "<< matrix[0].size();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #finding #size #columns #rows #vector
ADD COMMENT
Topic
Name
7+2 =