stack.h

来自「栈的应用(1)数制转换」· C头文件 代码 · 共 25 行

H
25
字号
#define STACKINITSIZE 100
#define STACKINCREMENT 10
typedef  char ElementType;
typedef  int status;
typedef struct{
	ElementType *base;
	ElementType *top;
	int stacksize;
}SqStack;

status InitSqStack(SqStack &s);
status DestroySqStack(SqStack &s);
status ClearSqStack(SqStack &s);

status IsSqStackEmpty(SqStack &s);

status IsSqStackFull(SqStack &s);

int SqStackLength(SqStack &s);
status GetSqStackTop(SqStack &s,ElementType &e);
status Push(SqStack &s,ElementType e);
status Pop(SqStack &s,ElementType &e);

status PrintSqStack(SqStack &s);

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?