stackl.h

来自「Data Abstraction & Problem Solving with 」· C头文件 代码 · 共 29 行

H
29
字号
// *********************************************************// Header file StackL.h for the ADT stack.// ADT list implementation.// *********************************************************#include "StackException.h"#include "ListP.h"     // list operationstypedef ListItemType StackItemType;class Stack{public:// constructors and destructor:   Stack();                     // default constructor   Stack(const Stack& aStack);  // copy constructor   ~Stack();                    // destructor// Stack operations:   bool isEmpty() const;   void push(StackItemType newItem) throw(StackException);   void pop() throw(StackException);   void pop(StackItemType& stackTop) throw(StackException);   void getTop(StackItemType& stackTop) const throw(StackException);private:   List aList;  // list of stack items};  // end class// End of header file.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?