Guest User

LinkedList.h

a guest
Jan 23rd, 2016
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. #include "linkedList.cpp"
  2.  
  3. class node
  4. {
  5.  
  6. public:
  7. node* next;
  8. int data;
  9. node(int Value, node* next_node)
  10. {
  11. data = Value;
  12. next = next_node;
  13. }
  14. };
  15. class linkedList
  16. {
  17.  
  18. public:
  19. node* root;
  20.  
  21. int linkedlist();
  22.  
  23. int size, max_size;
  24.  
  25. void insert(int number);
  26.  
  27. int isEmpty();
  28.  
  29. int numOfElements();
  30.  
  31. void printList();
  32. };
Advertisement
Add Comment
Please, Sign In to add comment