#include #include "CSListT.h" using namespace std; void PrintList(ListT list); void Increment(ListT & list); int main() { ListT list; for (int i = 0; i < 10; ++i) { cout << "Iteration " << i << endl; list.PushFront(i); PrintList(list); cout << endl << endl; } cout << endl << endl; cout << "Incrementing everything by 100 " << endl; Increment(list); PrintList(list); cout << endl << endl; cout << "Removing thefirst three " << endl; list.PopFront(); list.PopFront(); list.PopFront(); PrintList(list); cout << endl; return 0; } void Increment(ListT & list) { list.Home(); while (not list.AtEnd()) { list.Data() += 100; list.Next(); } } void PrintList(ListT list){ list.Home(); while (not list.AtEnd()) { cout << list.Data() << endl; list.Next(); } }