/* testLink.cpp */ #include #include "link.h" int main() { LinkedList list1 ; //= new LinkedList; // add some initial nodes list1.AddNode( 3 ); list1.AddNode( 5 ); cout << "Initial contents of list1:" << endl; list1.ListNodes(); // add a few more nodes list1.AddNode( 1 ); cout << "Contents of list1 after adding:" << endl; list1.ListNodes(); // delete a few nodes list1.DeleteNode( 5 ); cout << "Contents of list1 after deleting:" << endl; list1.ListNodes(); }