Queue的push和front操作
2024-08-28 11:28:49
#include <queue>
#include <cstdlib>
using namespace std;
int main(){
queue<int> que;
que.push(1);
que.push(2);
que.push(3);
printf("%d\n", que.front());
que.pop();
printf("%d\n", que.front());
que.pop();
printf("%d\n", que.front());
system("pause");
return 0;
}
最新文章
- mysql优化案例分析
- ecshop if标签,超过N条,就输出记录 elseif、库存显示方式
- android 缓存Bitmap 使用内存缓存
- struts2的标签中得到JSP脚本的变量值
- postgre去重复记录
- jquery ajax post 传递数组 ,多checkbox 取值
- 动软代码生成与 EntityFramework 实体生成模板
- DWZ框架Ajax无刷新表单提交处理流程
- Windows.Andy.Code4App.dll Win8.1/WP8.1通用类库@ver1.0.0
- jQuery CSS 的操作函数
- Period II - FZU 1901(KMP->;next)
- [LeetCode] 347. Top K Frequent Elements 解题思路 - Java
- poj 3134 Power Calculus(迭代加深dfs+强剪枝)
- 数据结构之并查集Union-Find Sets
- linux 清理缓存buff/cache
- 如何实现从Java入门到服务端项目开发的进阶?
- BZOJ 1800 [Ahoi2009]fly 飞行棋
- 新手学习Linux之快速上手分析
- 怎样更新CentOS6.5的yum源
- 最短路径 - 弗洛伊德(Floyd)算法
热门文章
- 【java开发系列】—— spring简单入门示例
- leetcode_222 Count Complete Tree Nodes
- cat常用参数详解
- ubuntu 15.04 联网提示:wifi已通过硬件开关禁用
- 关于spring-servlet.xml cannot be opened because it does not exist的解决
- 夺命雷公狗-----React---1--页面的渲染
- oracle 面试题
- MSDeploy
- OnScrollListener分页加载
- s3c2440 移值u-boot-2016.03 第4篇 支持NAND flash 识别