Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct Node
- {
- int data;
- Node* next;
- };
- class LinkedList
- {
- public:
- LinkedList();
- LinkedList(Node*);
- void insertNode(Node*);
- void removeNode(int);
- void printList();
- //void insertAtHead(Node*);
- //void insertAtLocation(Node*);
- //void search(int); if found print and return node else print not found
- private:
- Node* head;
- int length;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement