#include<iostream> #include<cstdio> #include<stack> using namespace std; stack<int> s; stack<string> ss; int main() { int x=1; s.push(x); // 入栈 s.pop(); // 出栈 s.top(); // 访问栈顶 s.empty(); // 当栈空时,返回true s.size(); // 访问栈中元素个数 return 0; }
转载于:https://www.cnblogs.com/clno1/p/9681173.html
最后
以上就是还单身信封最近收集整理的关于(ACM模板)栈stack的全部内容,更多相关(ACM模板)栈stack内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复