📄 stack.h
字号:
#ifndef STACK_H
#define STACK_H
#define TRUE 1
#define FALSE 0
#define OK 1
#define ERROR 0
#define IBFEASIBLE -1
#define OVERFLOW -2
#define MAXLEN 20
#define MAXSIZE 20
#define STACK_INIT_SIZE 100;
#define STACKINCREMENT 10;
typedef int Status;
typedef char SElemType;
typedef struct
{
SElemType *base;
SElemType *top;
int stacksize;
}SqStack;
Status InitStack( SqStack &S );
Status StackEmpty( SqStack S );
//Status Top( SqStack S, SElemType &e );
Status Push( SqStack &S, SElemType e );
Status Pop( SqStack &S, SElemType &e );
SElemType Top( SqStack S );
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -