Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

how to loop a 2 dimensional vector in c++ starting from second element

for(int i = 1; i < arr.size(); i++)
{
  for(int j = 1; j < arr[i].size(); j++)
  {
    cout << arr[i][j] << endl;
  }
}
 
PREVIOUS NEXT
Tagged: #loop #dimensional #vector #starting #element
ADD COMMENT
Topic
Name
5+7 =