首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C++ >

敬请帮忙解释下面编译异常提示

2013-07-04 
敬请帮忙解释下面编译错误提示: warning C4305: : truncation from const double to floatE:\prog

敬请帮忙解释下面编译错误提示
: warning C4305: '=' : truncation from 'const double' to 'float'
E:\progra\emp\empfunc.cpp(46) : error C2509: 'pa' : member function not declared in 'sa'
        e:\progra\emp\emp.h(27) : see declaration of 'sa'
E:\progra\emp\empfunc.cpp(64) : error C2084: function '__thiscall sa::sa(void)' already has a body
E:\progra\emp\empfunc.cpp(65) : error C2065: 'mo' : undeclared identifier
E:\progra\emp\empfunc.cpp(66) : warning C4305: '=' : truncation from 'const double' to 'float'
E:\progra\emp\empfunc.cpp(72) : error C2275: 'sama::sa' : illegal use of this type as an expression
E:\progra\emp\empfunc.cpp(73) : error C2275: 'sama::sa' : illegal use of this type as an expression
E:\progra\emp\empfunc.cpp(77) : error C2084: function 'void __thiscall sa::dis(void)' already has a body
执行 cl.exe 时出错.

empfunc.obj - 1 error(s), 0 warning(s)

[解决办法]
http://translate.google.cn/?hl=zh-cn&tab=wT#en/zh-CN/%3A%20warning%20C4305%3A%20'%3D'%20%3A%20truncation%20from%20'const%20double'%20to%20'float'%0D%0A%20E%3A%5Cprogra%5Cemp%5Cempfunc.cpp(46)%20%3A%20error%20C2509%3A%20'pa'%20%3A%20member%20function%20not%20declared%20in%20'sa'%0D%0A%20%20%20%20%20%20%20%20%20e%3A%5Cprogra%5Cemp%5Cemp.h(27)%20%3A%20see%20declaration%20of%20'sa'%0D%0A%20E%3A%5Cprogra%5Cemp%5Cempfunc.cpp(64)%20%3A%20error%20C2084%3A%20function%20'__thiscall%20sa%3A%3Asa(void)'%20already%20has%20a%20body%0D%0A%20E%3A%5Cprogra%5Cemp%5Cempfunc.cpp(65)%20%3A%20error%20C2065%3A%20'mo'%20%3A%20undeclared%20identifier%0D%0A%20E%3A%5Cprogra%5Cemp%5Cempfunc.cpp(66)%20%3A%20warning%20C4305%3A%20'%3D'%20%3A%20truncation%20from%20'const%20double'%20to%20'float'%0D%0A%20E%3A%5Cprogra%5Cemp%5Cempfunc.cpp(72)%20%3A%20error%20C2275%3A%20'sama%3A%3Asa'%20%3A%20illegal%20use%20of%20this%20type%20as%20an%20expression%0D%0A%20E%3A%5Cprogra%5Cemp%5Cempfunc.cpp(73)%20%3A%20error%20C2275%3A%20'sama%3A%3Asa'%20%3A%20illegal%20use%20of%20this%20type%20as%20an%20expression%0D%0A%20E%3A%5Cprogra%5Cemp%5Cempfunc.cpp(77)%20%3A%20error%20C2084%3A%20function%20'void%20__thiscall%20sa%3A%3Adis(void)'%20already%20has%20a%20body%0D%0A%20%E6%89%A7%E8%A1%8C%20cl.exe%20%E6%97%B6%E5%87%BA%E9%94%99.%0D%0A%0D%0A%20empfunc.obj%20-%201%20error(s)%2C%200%20warning(s)


敬请帮忙解释下面编译异常提示

热点排行