Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

cpp init 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 #init #multidimensional #vector
ADD COMMENT
Topic
Name
7+5 =