Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

initialzing a 2d vector in cpp

  // Create a vector containing n row and m columns
  vector<vector<int> > vec( n , vector<int> (m, 0));  
 
PREVIOUS NEXT
Tagged: #initialzing #vector #cpp
ADD COMMENT
Topic
Name
1+4 =