Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

c++ vector iterator

#include <iostream>
#include <vector>
using namespace std;

vector<int> myvector;

for (vector<int>::iterator it = myvector.begin();
     it != myvector.end();
     ++it)
   cout << ' ' << *it;
cout << '
';
 
PREVIOUS NEXT
Tagged: #vector #iterator
ADD COMMENT
Topic
Name
8+3 =