c++学习2011-03-09
来源:互联网 发布:元首最广为人知的cp 编辑:程序博客网 时间:2024/06/06 07:26
背景:
<string.h>
源代码:
略
错误提示:
error C2679: binary '<<' : no operator defined which takes a right-hand
operand of type 'class std::basic_string<char,
struct std::char_traits<char>,class std::allocator<char> >' (or there is no accepta
错误分析:
与你定义的操作符“>>”右边的操作数类型不匹配
二进制“operator”: 没有找到接受类型“type”的右操作数的运算符(或没有可接受的转换)
研究结果(知识扩展):
把其中的 “.h”去掉,则错误消失,能够正常运行!
cout<<xxx.rch()<<endl;看看,rch是方法
- C语言学习03
- C语言学习日记09
- C学习
- C++学习
- c ++ 学习
- 学习C
- c学习
- 学习C#!
- 学习C
- c学习
- c学习
- 学习C
- 学习C
- 学习C++
- C学习
- c学习
- 【C/C++】学习导论
- C/C++____vector___学习
- C语言字符串和宽位处理函数
- 开放、自由、互动与和谐的地理信息服务——确立我的事业目标
- 今天见了一个外国客户
- 手把手教你给VC++编写插件
- Volume 2. Data Structures :: Lists
- c++学习2011-03-09
- 如何看懂源代码
- flash builder 4 中Image组件的maintainAspectRatio属性
- C#线程同步——lock,Monitor,Mutex
- typedef的四个用途和两个陷阱
- shell实例(十一) ----循环,select结构
- Could not find action or result,There is no Action mapped for namespace / and action name hello_struts. - [unknown location]
- 什么是windows能干而linux干不了的
- Linux下关于环境变量的一些心得