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
相关文章推荐
- css3盒布局取代float布局
- SCADA组态系统将主宰新的网络安全领域
- queue
- 信号量解决哲学家就餐问题
- SDUT 3315 a
- IOS基础UI之(一)简单的qq登录
- 数据可视化的定义及使用注意
- next_permutation
- php 利用dede搭建一个模板网站
- map
- iOS内置付费开发笔记
- 从Java官网下载JDK1.6等低版本JDK
- etc/profile和/etc/environment的比较
- lower_bound
- Java基础知识强化08:将字符串倒序输出(包括空格)的几种方法
- 基本的struts 1.x工程讲解
- Android入门第八篇之GridView(九宫图)
- jQueryMobile的组件之导航条(navbar)
- JQuery基础
- 输入链表输出该链表倒数第k个结点java实现