Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "linkedList.cpp"
- class node
- {
- public:
- node* next;
- int data;
- node(int Value, node* next_node)
- {
- data = Value;
- next = next_node;
- }
- };
- class linkedList
- {
- public:
- node* root;
- int linkedlist();
- int size, max_size;
- void insert(int number);
- int isEmpty();
- int numOfElements();
- void printList();
- };
Advertisement
Add Comment
Please, Sign In to add comment