stack.h

来自「大方科技莱卡的减肥了但十分大方的发生地方」· C头文件 代码 · 共 38 行

H
38
字号
/*
** Interface for a stack module
*/

#define	STACK_TYPE	int	/* Type of value on the stack */

/*
** push
**	Pushes a new value on the stack.  The argument is the value
**	to be pushed.
*/
void	push( STACK_TYPE value );

/*
** pop
**	Pops a value off of the stack, discarding it.
*/
void	pop( void );

/*
** top
**	Returns the topmost value on the stack without changing the
**	stack.
*/
STACK_TYPE top( void );

/*
** is_empty
**	Returns TRUE if the stack is empty, else FALSE.
*/
int	is_empty( void );

/*
** is_full
**	Returns TRUE if the stack is full, else FALSE.
*/
int	is_full( void );

⌨️ 快捷键说明

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