//File:	intStackDriver2.cpp
#include <iostream>
#include "intStack.h"
using namespace std;
int main()
try
{
	intStack s;
	
	s.push(25);
	s.push(12);
	s.push(8);
	s.push(10);

	cout << s.pop() << endl;
	
	s.push(34);
	s.push(45);
	
	cout << s.pop() << endl;
	cout << s.pop() << endl;
	cout << s.pop() << endl;
	cout << s.pop() << endl;
	
	return 0;
}
	
catch (pushOnFull)
{
	cout << "Pushing onto full stack..." << endl;
}
catch (popOnEmpty)
{
	cout << "Popping an empty stack..." << endl;
}
