/* show that containers are sometimes interchangable */ #include #include #include using namespace std; void main(){ vector c; vector::iterator it; // list c; // vector::iterator it; for(int i=0; i<5; i++) c.push_back(i+1); int count = 7; for(it = c.begin(); it != c.end(); it++){ *it = count--; } for(it = c.begin(); it != c.end(); it++){ cout << *it << endl; } }