/* CSE 333 Su12 lecture 12 demo: vectorfun.cc */ /* Gribble/Perkins */ // Create a vector of Printer objects and perform a few operations. #include #include #include "Printer.h" using namespace std; int main(int argc, char **argv) { Printer a, b, c; vector vec; cout << "vec.push_back " << a << endl; vec.push_back(a); cout << "vec.push_back " << b << endl; vec.push_back(b); cout << "vec.push_back " << c << endl; vec.push_back(c); cout << "vec[0]" << endl; cout << vec[0] << endl; cout << "vec[2]" << endl; cout << vec[2] << endl; return 0; }