seqstack.h
来自「数据结构中有关栈的知识」· C头文件 代码 · 共 19 行
H
19 行
#include <iostream>
#include "stack.h"
using namespace std;
class seqstack:public stack
{
public:
stack *top;
seqstack();
~seqstack();
void push();
void pop();
bool isempty() {return (top->link==NULL)?1:0;}
//void sort();
stack *gethead() {return top;}
friend ostream& operator <<(ostream& out,seqstack& l);
friend istream& operator >>(istream& in,seqstack& l);
};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?