设为首页 加入收藏

TOP

Stack的pop和push操作
2017-10-11 18:33:33 】 浏览:9238
Tags:Stack pop push 操作
#include <stack>
#include <cstdio>
using namespace std;
int main(){
stack<int> s;
s.push(1);
s.push(2);
s.push(3);
printf("%d\n", s.top());
s.pop();
printf("%d\n", s.top());
s.pop();
printf("%d\n", s.top());
s.pop();
system("pause");
return 0;
}
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇VisualStudio 调试Linux 下一篇Queue的push和front操作

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目