Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include "list.h"
- using namespace std;
- int main()
- {
- List myList;
- myList.headInsert(0);
- myList.headInsert(1);
- myList.headInsert(2);
- myList.tailInsert(3);
- myList.tailInsert(4);
- myList.tailInsert(5);
- cout << "Current list: " << myList << endl;
- for (int i = 0; i<4; i++) {
- cout << "Value off list: " << myList.headRemove() << endl;
- cout << "Current list: " << myList << endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement