/********************************************************************* Author: Dana Vrajitoru, IUSB, CS Class: C243, Spring 2004 File name: vector_test.cc Last updated: March 3, 2004. Description: A little program to give an example of how the vector class functions. **********************************************************************/ #include using namespace std; #include int main() { vector v(21); v[0]=1; v[5]=2; v[20]=3; v.push_back(4); v.push_back(5); v.clear(); cout << v.size() << endl; for (int i=0; i