#include <iostream>
#include "LList.h"
using namespace std;
/*
int main(void)
{
	LList myList; 
	LList my2ndList;
	cout<<"Adding:"<<endl;
	for (int i=0;i<10;i++){
		cout<<i<<endl;
		myList.add((TYPE)i);
	}
	cout<<"Now deleting..."<<endl;
	while(!myList.isEmpty())
	{   
		cout<<myList.peek()<<endl;
		myList.del();
	}
	cout<<"List now empty"<<endl;

//**************************************

cout<<"Adding:"<<endl;
	for (int i=0;i<100;i++){
		cout<<i<<endl;
		my2ndList.add((TYPE)i);
	}
	cout<<"Now deleting..."<<endl;
	while(!my2ndList.isEmpty())
	{   
		cout<<my2ndList.peek()<<endl;
		my2ndList.del();
	}
	cout<<"List now empty"<<endl;

	return 0;
}
*/
#include "stack.h"
#include <iostream>
using namespace std;

int main(void)
{
	Stack stack1;
	stack1.push(1);
	stack1.push(2);
	stack1.push(3);
	stack1.push(4);
	cout << stack1.pop()<<"\n";
	cout << stack1.pop()<<"\n";
	cout << stack1.pop()<<"\n";
	cout << stack1.pop()<<"\n";
	cout << stack1.pop()<<"\n";
	cout << stack1.pop()<<"\n";
	
	return 0;
}