Programming help

u
Last edited on
Please note, that this is not a homework site. We won't do your homework for you. The purpose of homework is that you learn by doing. However we are always willing to help solve problems you encountered, correct mistakes you made in your code and answer your questions.

We didn't see your attempts to solve this problem yourself and so we cannot correct mistakes you didn't make and answer questions you didn't ask. To get help you should do something yourself and get real problems with something. If your problem is "I don't understand a thing", then you should go back to basics and study again.
n
Last edited on
Please use [code] tags.

Did you have a question about that code? Something you were confused about?
Case labels end with colon, not semicolon.

case 's':

not

case 's';
I need help figuring out what I'm doing wrong when I complie it,
I'm not sure if I'm missing commands for it to output what my professor wants on the instruction handout shown up top
m
Last edited on
can anyone help me ?
Could you use [code] tags?
http://www.cplusplus.com/articles/z13hAqkS/
I see a couple problems. You're using your variables charge, hour, and vehicle, without ever initializing them. Second, you have this:

1
2
3
4
5
case 'T':
case 't':

else if (hours > 1) 
{


There is no "if" in that block, so "else" makes no sense and is an error.
Topic archived. No new replies allowed.