首页 > 其他 > 详细

stack

时间:2015-08-30 19:26:49      阅读:214      评论:0      收藏:0      [点我收藏+]
技术分享
 1 #include <stdio.h>
 2 #include <string.h>
 3 #include <stack>
 4 #include <algorithm>
 5 using namespace std;
 6 int main()
 7 {
 8     stack <int> s;
 9     s.push(1);
10     s.push(2);
11     s.push(3);
12     printf("%d\n",s.top());
13     s.pop();
14     printf("%d\n",s.top());
15     s.pop();
16     printf("%d\n",s.top());
17     return 0;
18 }
View Code

 

stack

原文:http://www.cnblogs.com/cyd308/p/4771327.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!