//File: intStackDriver4.cpp #include #include "intStack4.h" using namespace std; int main() try { intStack s; s.push(25); s.push(12); s.push(8); 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 e) { cout << e.what() << " Value attempted: " << e.valueOf() << endl; } catch (popOnEmpty e) { cout << e.what() << endl; }