#include <iostream>
#include <cmath>
#include <cstdlib>


using namespace std;


#include "LinkedListInt.h"
#include "LinkedList.h"
#include "LinkedList.cpp"


int main(int argc,char *argv[])
{
   cout << "Test Class Linked List" << endl;
   LinkedListInt* l = new LinkedListInt();
   l->push(1);
   l->push(2);
   l->push(3);
   l->push(4);
   l->push(5);
   while(l->size() > 0){
       cout << l->pop()<< ", ";
   }
   cout << endl;
   l->push(1);
   l->push(2);
   l->push(3);
   l->push(4);
   l->push(5);
   delete(l);
   LinkedList<int>* l2 = new LinkedList<int>();
   l2->push(0);
   l2->push(1);
   l2->push(2);
   l2->push(3);
   l2->push(4);
   l2->push(5);
   while(l2->size() > 0){
       cout << l2->pop()<< ", ";
   }
   cout << endl;


   return 1;

}

