📄 stack.h
字号:
#include<malloc.h>
#define STACK_INIT_SIZE 100
#define STACKINCREMENT 10
#define ERROR -1
#define OK 0
typedef int Status;
typedef int Elemtype;
typedef struct{
Elemtype *base;
Elemtype *top;
int stacksize;
}NumStack,OpStack,SqStack;
Status DestroyStack(SqStack *s);
Status Pop(SqStack *s,Elemtype *e);
Status Push(SqStack *s,Elemtype e);
Status GetTop(SqStack s,Elemtype *e);
Status InitStack(SqStack *s);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -