#includeusing namespace std; //顺序栈的实现 typedef struct{ int data[1000]; int top; }SqStack; //初始化栈 void InitStack(SqStack &S){ S.top = -1; } //判断栈是否为空 bool StackEmpty(SqStack S){ if(S.top == -1) return true; else return false; } //入栈 void Push(SqStack &S, int x){ if(S.top == 999) cout<<"栈满"< output:
欢迎分享,转载请注明来源:内存溢出
赞
(0)
打赏
微信扫一扫
支付宝扫一扫
![微信扫一扫](/view/img/theme/weipay.png)
![支付宝扫一扫](/view/img/theme/alipay.png)
c++ 11标准模板(STL) std::map(二)
上一篇
2022-12-17
实现多线程的方法
下一篇
2022-12-17
评论列表(0条)