Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef LIST_H
- #define LIST_H
- class List
- {
- private:
- struct ListNode
- {
- int value; //Value in this node
- struct ListNode *next; //Points to the next node
- };
- ListNode *head; //Head pointer
- public:
- List()
- { head = 0; }
- ~List();
- //Linked list operations:
- void appendNode(int);
- void insertNode(int);
- void insertSpecificNode(int, int);
- void deleteNode(int);
- void displayList();
- };
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement