![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
栈
hpuw1234
这个作者很懒,什么都没留下…
展开
-
栈 ALDS1_3_A:Stack
这是某本书上的题,书上给的代码有bug 代码: //书上给的代码有bug #include #include #include int top,S[1000]; void push(int x) { S[++top]=x; } int pop() { top--; return S[top+1]; } int main() { int a,b; top=0; char s原创 2017-08-16 15:17:24 · 425 阅读 · 1 评论 -
STL-stack实现栈
#include用来将STL的stack包含到程序中。 stack S;是一个声明,用于生成管理int型元素的栈。STL提供的stack是一个模板,需要我们在 例如:stack中定义了如下表的成员函数 函数名 功能 复杂度 size()原创 2017-08-20 15:52:06 · 289 阅读 · 0 评论