Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <stdlib.h>
- #include "LinkedList.h"
- int main()
- {
- LinkedList<int>* LinkyLink = new LinkedList<int>();
- LinkyLink->push_back(5);
- LinkyLink->push_back(54);
- LinkyLink->push_front(16);
- LinkedNode<int>* A = LinkyLink->push_back(50);
- LinkyLink->set_head(A);
- /*
- LinkyLink->iterate([&] (int x)
- {
- std::cout << x << std::endl;
- });
- */
- delete LinkyLink;
- system("PAUSE");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement