#include #include "DListT.h" using namespace std; void TellAboutList(DListT & list); void PrintList(DListT list); int main() { DListT a; cout << "Empty List" << endl; // should be empty TellAboutList(a); cout << "Inserting First" << endl; // should be : First a.Insert("First"); TellAboutList(a); cout << "Inserting Second" << endl; a.Insert("Second"); // should be: Second First TellAboutList(a); cout << "Inserting Third" << endl; a.Insert("Third"); // should be: Third Second First TellAboutList(a); a.Right(); cout << "Moving to the Right" << endl; cout << "Inserting Fourth" << endl; // should be: Third Fourth Second First a.Insert("Fourth"); TellAboutList(a); return 0; } void TellAboutList(DListT & list) { cout << endl; cout << "The List has " << list.Size() << " elements." << endl; PrintList(list); cout << endl; } void PrintList(DListT list) { size_t i; list.Home(); for(i=0;i