求助,哪里有問題
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
怎解?
2015-03-16
舉報(bào)
2015-03-16
price這個(gè)方法的返回值類型不對(duì),換成float