//File:	intStackDriver3.cpp
#include <iostream>
#include "intStack3.h"
using namespace std;
int main()
try
{
	intStack s;
	
	s.push(25);
	s.push(12);

	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 a full stack..." << endl;
}
catch (popOnEmpty e)
{
	cout << e.what() << endl;
}
