#include "list.h" #include "listNode.h" #include using namespace std; int main() { cout << endl; List *l = new List; l->Readin(); cout << "List l" << " Located at " << l << endl; l->Printout(); cout << endl; List *m = new List; m->Readin(); cout << "List m" << " Located at " << m<< endl; m->Printout(); cout << endl; List *o = new List; // Terrible copy because it does not make a list of the copy *o = *m; cout << "List o" << " Located at " << o<< endl; o->Printout(); cout << endl; l->Erase(); m->Erase(); cout << "List l" << " Located at " << l<< endl; l->Printout(); cout << "List m" << " Located at " << m<< endl; m->Printout(); cout << "List o" << " Located at " << o<< endl; o->Printout(); cout << endl; return 0; }