Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- using namespace std;
- class List {
- private:
- int length; //the number of elements on the list
- struct element
- {
- int *parr;
- int size;
- int key;
- element *next;
- };
- element *head;
- public:
- List(); //constructor
- void removeElement(int key);
- void insert(int how_large, int key);
- void print();
- int get(int key, int index);
- void set(int key, int index, int value);
- }
- List::element()
- {
- head=NULL;
- length = 0;
- }
Add Comment
Please, Sign In to add comment