顺序栈的建立与操做

#include<iostream> typedef int Elemtype; const int MaxSize = 50; //设置链表最大长度 /* 1.栈顶Top值不能超过MaxSize 2.空栈的断定条件一般定为top == -1,满栈的断定条件一般为top == MaxSize-1 栈中元素个数为top+1 */ //顺序栈 typedef struct { Elemtyp
相关文章
相关标签/搜索