#ifndef LIST_H #define LIST_H #include #include "listNode.h" using namespace std; // 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 public: // Member functions List(); List(const List&); ~List(); List operator=(const List &); friend ostream & operator<<(ostream &, const List &); friend istream & operator>>(istream &, List &); List operator+(const List &); void InsertAfterNode(ListNode *, int); void InsertFront(int); void InsertSorted(int); void InsertAtEnd(int); ListNode* GetFirst() const; void Concatenate(const List &); void Erase(); }; #endif // LIST_H