+ 1
Please help in this code. Don't understand what is missing
This program is to show the output form the class ShowFuel() https://code.sololearn.com/cNBX0899yOd9/?ref=app
7 Respuestas
+ 13
As of the latest standard, main() must return int.
int main()
{
//codes
return 0;
}
Other than that, it is 'else if' not 'elseif'.
Missing semicolon somewhere in cal_fuel function.
Use string instead of char(100).
gets() is obsolete. Use getline(cin, Destination) after applying fix.
+ 8
also - no need for return type of float in cal_fuel, this can be a return type of void
+ 6
Also check first if statement in cal_fuel
is this supposed to be 1000?
+ 6
let me know when you have updated your code so I can delete the version I have. k thanks
+ 3
yeah that's supposed to be 1000. and thanks everyone for the support.
+ 2
ok. done. you can delete now
+ 1
https://code.sololearn.com/cNBX0899yOd9/?ref=app
still nothing, help please