#include #include "ListT.h" using namespace std; const int MAX_ITEMS {10000}; void PrintList(ListT list); int main() { ListT list; ListT b; list.Insert(3); list.Insert(5); cout << "Before the call to PrintList" << endl; PrintList(list); cout << "After the call to PrintList, now inserting 7" << endl; list.Insert(7); cout << "After inserting 7" << endl; PrintList(list); b = list; return 0; } void PrintList(ListT list){ cout << endl; cout << "************************" << endl; cout << "The list has " << list.Size() << " elements." << endl; list.Home(); while(not list.IsLast()) { cout << list.Current() << " " ; list.Next(); } cout << endl; return; }