为了账号安全,请及时绑定邮箱和手机立即绑定

求助,哪里有问题

In function 'price':
warning: 'return' with a value, in function returning void
In function 'main':
error: void value not ignored as it ought to be
error: void value not ignored as it ought to be
warning: no newline at end of file


怎解?

正在回答

1 回答

price这个方法的返回值类型不对,换成float

0 回复 有任何疑惑可以回复我~
#1

Fuko 提问者

非常感谢!帮我注意到了被忽略的void
2015-03-16 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

求助,哪里有问题

我要回答 关注问题
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号