Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1536143
  • 博文数量: 113
  • 博客积分: 3526
  • 博客等级: 中校
  • 技术积分: 1815
  • 用 户 组: 普通用户
  • 注册时间: 2009-09-08 09:46
个人简介

记录总结自己的工作

文章分类

全部博文(113)

文章存档

2015年(19)

2014年(10)

2013年(6)

2012年(16)

2011年(24)

2010年(21)

2009年(17)

分类: C/C++

2010-09-15 14:22:43

今天使用cout<<输出vector里的内容,死活编译不通过,提示:error C2679: binary '<<' : no operator defined which takes a right-hand operand of type 'class std::basic_string,class std::allocator >' 
(or there is no acceptable conversion)
上网翻了半天,就差砸电脑了。后来看到有人说把iostream.h中的.h去掉。我看我的iostream也没有.h,再一仔细看原来string.h有个.h,去掉该.h后,问题终于解决。
阅读(2260) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~