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

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