Try this:
for(vector::const_iterator i = features.begin(); i != features.end(); ++i) {
// process i
cout << *i << " "; // this will print all the contents of *features*
}
If you are using C++11, then this is legal too:
for(auto i : features) {
// process i
cout << i << " "; // this will print all the contents of *features*
}