//Implementation File: intStack4.cpp #include "intStack4.h" intStack::intStack() { top=-1; } void intStack::push(const int number) throw (pushOnFull) { if (full()) throw pushOnFull(number); s[++top]=number; } int intStack::pop() throw (popOnEmpty) { if (empty()) throw popOnEmpty(); return (s[top--]); } bool intStack::empty() const { return (top==-1); } bool intStack::full() const { return (top==maxSize-1); }