#ifndef LIST_H #define LIST_H #include #include "listNode.h" // Definition for Class List class List { private: // Each object contains two values ListNode *first; // Pointer to first ListNode object in List ListNode *last; // Pointer to last ListNode object in List void InsertAfterNode(ListNode *p, int x); void InsertFront(int x); void InsertSorted(int x); public: // Member functions List(); ~List(); void Readin(); void Printout(); void Erase(); }; #endif // LIST_H