Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

initialising 2d vector

// Initializing 2D vector "vect" with 
// values 
vector<vector<int> > vect{ { 1, 2, 3 }, 
                           { 4, 5, 6 }, 
                           { 7, 8, 9 } }; 
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #initialising #vector
ADD COMMENT
Topic
Name
1+4 =