vector output

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
std::vector<int> data;
for (int i=0; i<10; ++i) {
data.push_back(i);
}
for (std::vector<int>::iterator it = data.begin();
it != data.end();
++it)
{
std::cout << *it << " ";
}