// Written by Mark Jacobson - 810:052 introduction to linked lists // and C++ pointers (February 19th, 1997) // Example program for 02/25 Tuesday class... // // Reformatted by Eugene Wallingford #include #include class List; class ListNode { public: ListNode(const int &element, ListNode* nextPtr); friend class List; private: int num; ListNode* next; }; class List { public: List(); void add (int myNum); void showList (); void showListAddresses(); private: ListNode* first; };