Code:
/*
 * Includes
 *
 */
#include <iostream>
#include <vector>

using std::vector;
using std::cout;
using std::endl;

int main(int argc, char* argv[])
{
   vector<int> myIntVector;
	size_t i = 0;
	for(i = 0; i < 10; i++){
		myIntVector.push_back(i + 100);
	}

	vector<int>::iterator it;
	i = 0;
	for(it = myIntVector.begin(); it < myIntVector.end(); ++it) {
		cout << "myIntVector[" << i++ << "] = " << *it << endl;
	}

	for(it = myIntVector.begin(); it < myIntVector.end(); ++it) {
		*it = 0;
	}

	cout << "\n\nDisplaying vector after setting all its element to 0\n";
	i = 0;
	for(it = myIntVector.begin(); it < myIntVector.end(); ++it) {
		cout << "myIntVector[" << i++ << "] = " << *it << endl;
	}

	return 0;
}