Needed Help w/This? Im a beginner...

Thank u!
Last edited on
Please edit your post to add code tags. See http://www.cplusplus.com/articles/jEywvCM9/
Think about the TYPES of variable you are using.

If A is a double in line 9, you shouldn't be assigning it to an int in line 12. In fact you don't use anything in line 12-14: they can be removed.

In line 26 I suspect you meant to write (noting the single quotes):
if (package == 'A')
in which case package should be declared as a char.

Similarly for all the other letters.

Please don't confuse int, double, char. Perhaps you need to read the tutorial
http://www.cplusplus.com/doc/tutorial/variables/
Topic archived. No new replies allowed.