One example, assuming you are storing ints in the vector, looks like:
vector<int> nums;
for (vector<int>::iterator i = nums.begin(); i != nums.end(); i++)
cout << *i << endl;;
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons