Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1465452
  • 博文数量: 596
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 173
  • 用 户 组: 普通用户
  • 注册时间: 2016-07-06 15:50
个人简介

在线笔记

文章分类

全部博文(596)

文章存档

2016年(1)

2015年(104)

2014年(228)

2013年(226)

2012年(26)

2011年(11)

分类: Windows平台

2014-03-20 09:31:31

因为类型deque是一个定义在namespace std内的template,所以最好加上std::
  1. static std::deque<char*>    msg_queue;
  2. void deque_test()
  3. {
  4.     msg_queue.push_front("12");
  5.     puts(msg_queue.front());
  6.     msg_queue.pop_front();
  7. }

阅读(548) | 评论(0) | 转发(0) |
0

上一篇:JSONCPP Windows编译

下一篇:LNK4070 VS2010

给主人留下些什么吧!~~