鱼C论坛

 找回密码
 立即注册
查看: 3410|回复: 2

C++第十一课的源代码编译错误

[复制链接]
发表于 2012-12-22 15:37:01 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能^_^

您需要 登录 才可以下载或查看,没有账号?立即注册

x
--------------------Configuration: FishOil - Win32 Debug--------------------
Compiling...
FishOil.cpp
D:\C++快速入门\第十一讲 复杂的数据类型05_对象的基础:结构\复杂的数据类型05(课件+源代码)\FishOil\FishOil.cpp(54) : error C2552: 'OilInit' : non-aggregates cannot be initialized with initializer list
D:\C++快速入门\第十一讲 复杂的数据类型05_对象的基础:结构\复杂的数据类型05(课件+源代码)\FishOil\FishOil.cpp(80) : error C2039: 'getline' : is not a member of 'std'
D:\C++快速入门\第十一讲 复杂的数据类型05_对象的基础:结构\复杂的数据类型05(课件+源代码)\FishOil\FishOil.cpp(80) : error C2065: 'getline' : undeclared identifier
D:\C++快速入门\第十一讲 复杂的数据类型05_对象的基础:结构\复杂的数据类型05(课件+源代码)\FishOil\FishOil.cpp(82) : error C2679: binary '<<' : no operator defined which takes a right-hand operand of type 'class std::basic_string<char,struct std::cha
r_traits<char>,class std::allocator<char> >' (or there is no acceptable conversion)
D:\C++快速入门\第十一讲 复杂的数据类型05_对象的基础:结构\复杂的数据类型05(课件+源代码)\FishOil\FishOil.cpp(103) : error C2679: binary '>>' : no operator defined which takes a right-hand operand of type 'class std::basic_string<char,struct std::ch
ar_traits<char>,class std::allocator<char> >' (or there is no acceptable conversion)
D:\C++快速入门\第十一讲 复杂的数据类型05_对象的基础:结构\复杂的数据类型05(课件+源代码)\FishOil\FishOil.cpp(105) : error C2679: binary '>>' : no operator defined which takes a right-hand operand of type 'class std::basic_string<char,struct std::ch
ar_traits<char>,class std::allocator<char> >' (or there is no acceptable conversion)
D:\C++快速入门\第十一讲 复杂的数据类型05_对象的基础:结构\复杂的数据类型05(课件+源代码)\FishOil\FishOil.cpp(135) : error C2679: binary '<<' : no operator defined which takes a right-hand operand of type 'class std::basic_string<char,struct std::ch
ar_traits<char>,class std::allocator<char> >' (or there is no acceptable conversion)
D:\C++快速入门\第十一讲 复杂的数据类型05_对象的基础:结构\复杂的数据类型05(课件+源代码)\FishOil\FishOil.cpp(136) : error C2679: binary '<<' : no operator defined which takes a right-hand operand of type 'class std::basic_string<char,struct std::ch
ar_traits<char>,class std::allocator<char> >' (or there is no acceptable conversion)
Error executing cl.exe.

FishOil.exe - 8 error(s), 0 warning(s)
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
求解 在线等。。。。。。
小甲鱼最新课程 -> https://ilovefishc.com
 楼主| 发表于 2012-12-22 16:54:28 | 显示全部楼层
原来要添加的一个string文件 不过我的VC6里FishOil OilInit = {"小甲鱼", "fishc00001", 'M'}; 这样些报错 要分开来些 不知道为什么 不过总算解决了 {:1_1:}
小甲鱼最新课程 -> https://ilovefishc.com
发表于 2013-4-24 21:17:11 | 显示全部楼层
来看看呵呵
小甲鱼最新课程 -> https://ilovefishc.com
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2025-8-13 18:17

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表