Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

cpp initialize multidimensional vector

vector<vector<int>> matrix(3, vector<int>(3));
// creates a 3x3 matrix of integers with vectors inside a main vector
 
PREVIOUS NEXT
Tagged: #cpp #initialize #multidimensional #vector
ADD COMMENT
Topic
Name
3+3 =