This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: full. // POST: newItem is at the top of the // stack. void Pop( int& item ) // PRE: Stack has been initialized and is not empty. // POST: top element has been removed from // stack.item is a copy of removed element. v void MakeEmpty( ) ~CS215stack( ) // PRE: Stack has been initialized. // POST: Memory allocated for nodes has been / // deallocated. p private: NodeType* topPtr // NULL if stack empty } #endif // Pointer to top of stack // destructor Page 1...
View Full Document
This note was uploaded on 10/13/2008 for the course CS 215 taught by Professor Piwowarski during the Spring '06 term at Kentucky.
- Spring '06