⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 stackl.h

📁 Data Abstraction & Problem Solving with C++源码
💻 H
字号:
// *********************************************************// 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -