// TestIntStack.cpp // Test IntStack class // CS210 - S'03 - 3/4/03 - Ray S. Babcock // #include using namespace std; #include "IntStack.h" int main(void) { IntStack myStack(5); int value; cout << "Pusing 5 values." << endl; for(int i=0; i<5; i++) { value = i+10; cout << "pushing " << value << endl; myStack.push(value); } cout << "Popping 5 values." << endl; for(int i=0; i<5; i++) { myStack.pop(value); cout << "popping " << value << endl; } }