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

求助,哪里有问题

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


怎解?

正在回答

3 回答

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

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

Fuko 提问者

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

肯定的,黑框美女,声音甜美

qkwmrlz

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

举报

0/150
提交
取消

求助,哪里有问题

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信