stack.h

来自「本次实验」· C头文件 代码 · 共 22 行

H
22
字号
#ifndef _STACK_H
#define _STACK_H

struct Node;
typedef struct Node *PtrToNode;
typedef PtrToNode Stack;
typedef int ElmentType;

struct Node
{
	ElmentType Elment;
	PtrToNode Next;
};

void MakeEmpty(Stack S);
Stack CreateStack(void);
void Push(ElmentType X,Stack S);
void Pop(Stack S);
ElmentType Top(Stack S);
int IsEmpty(Stack S);

#endif

⌨️ 快捷键说明

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