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.dcs.bbk.ac.uk #
 
PREVIOUS NEXT
Tagged: #initialising #vector
ADD COMMENT
Topic
Name
2+2 =