// stack.h declares the public functions implemented in the stack abstract //
// (the implementation file is stack.cpp). By including this file in their //
// code, users of the stack can access the following operations: //
// //
// 1. void initialiseStack(Stack) - reset the stack to the empty state //
// 2. bool isEmpty(Stack) - test whether the stack is empty //
// 3. bool isFull(Stack) - test whether the stack is full //
// 4. void push(Stack, StackElement) - put another element onto the stack //
// 5. StackElement pop(Stack) - remove & return the top element //
// 6. StackElement peek(Stack) - return a copy of the top element //
// //
// The implementation of this stack can be found in
Comments
Leave a comment