Advertisement
thekillerx888

[Lab Week 7] LinkedList.h

Jun 28th, 2016
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.37 KB | None | 0 0
  1. struct Node
  2. {
  3. int data;
  4. Node* next;
  5. };
  6.  
  7. class LinkedList
  8. {
  9.     public:
  10.         LinkedList();
  11.         LinkedList(Node*);
  12.         void insertNode(Node*);
  13.         void removeNode(int);
  14.         void printList();
  15.         //void insertAtHead(Node*);
  16.         //void insertAtLocation(Node*);
  17.         //void search(int); if found print and return node else print not found
  18.    
  19.     private:
  20.         Node* head;
  21.         int length;
  22.    
  23. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement