stack.h

来自「图的邻接表存储实现」· C头文件 代码 · 共 23 行

H
23
字号
#include"common.h"
#define STACKINITSIZE 100
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 + -
显示快捷键?