//-------------------------------------------------------------------- // // Laboratory 10 test10.cpp // // Test program for a set of recursive linked list functions // //-------------------------------------------------------------------- // Reads a list of characters and calls the specified recursive // routine. #include #include "listrec.cpp" void main() { List testList; // Test list char testElement; // List element cout << endl << "Enter a list of characters : "; cin.get(testElement); while ( testElement != '\n' ) { testList.insert(testElement); cin.get(testElement); } testList.showStructure(); // Call a recursive routine by uncommenting the call you wish to // execute. //PA testList.write(); //PA testList.insertEnd('!'); //PB testList.writeMirror(); //PC testList.reverse(); //PD testList.deleteEnd(); //PE cout << "length = " << testList.length() << endl; //BA testList.unknown1(); //BB testList.unknown2(); //1A testList.iterReverse(); //1B testList.stackWriteMirror(); //2 testList.aBeforeb(); //3 testList.cRemove(); testList.showStructure(); }