⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 stack.h

📁 栈的应用(2)括号匹配检查
💻 H
字号:
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -