标签:
top可以用来表示下标。top为-1表示栈空,其他情况top表示栈顶元素的下标
1 typedef int SElemType; 2 struct SqStack{ 3 SElemType *base; 4 int top; 5 int stacksize; 6 };
顺序栈的另一种实现
原文地址:http://www.cnblogs.com/4bytes/p/4428099.html