顺序栈的基本操作(c语言)

主要介绍出栈,入栈,栈的初始化,栈的遍历,以及得到首元素 栈的数据结构参考严蔚敏的《数据结构》。 完整代码如下: #define TRUE 1 #define ERROR -1 #define OVERFLOW -1 #define INIT_STACK_SIZE 100 #define SIZEINCREMENT 10 typedef int Elemtype; typedef int Stat
相关文章
相关标签/搜索