您的位置:首页 > 其它

stack

2015-08-30 18:41 197 查看
#include <stdio.h>
#include <string.h>
#include <stack>
#include <algorithm>
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());
return 0;
}


View Code
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: