stack.h
来自「《C/C++程序设计导论(第二版)》一书的程序源文件」· C头文件 代码 · 共 13 行
H
13 行
// stack.h Definition of the Stack class
const int MAX = 100;
class Stack
{ public: Stack (); // constructor
void Push (int x); // push x onto stack
int Pop (); // pop and return top integer
int Top (); // return a copy of top integer
private: int cells[MAX]; // allow a maximum of MAX ints
int current_top; // index of current top
void Serror (char *);
};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?