Advertisement
Skydive

main.cpp

Jul 4th, 2014
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.43 KB | None | 0 0
  1. #include <iostream>
  2. #include <stdlib.h>
  3. #include "LinkedList.h"
  4.  
  5. int main()
  6. {
  7.     LinkedList<int>* LinkyLink = new LinkedList<int>();
  8.     LinkyLink->push_back(5);
  9.     LinkyLink->push_back(54);
  10.     LinkyLink->push_front(16);
  11.     LinkedNode<int>* A = LinkyLink->push_back(50);
  12.     LinkyLink->set_head(A);
  13.    
  14.     /*
  15.     LinkyLink->iterate([&] (int x)
  16.     {
  17.         std::cout << x << std::endl;
  18.     });
  19.     */
  20.    
  21.     delete LinkyLink;
  22.     system("PAUSE");
  23.     return 0;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement