Note that there is no need for curly braces inside each case-block. So:
Also noted that I include a "break" statement in the defauot clause. The reason for this is that it is not required for the default clause to come after all of the case clauses (but it is usually considered good practice to do so).

Thanks, guys. I fixed it, and you helped a lot. Oh, and line 37 is the tail end of a Do While loop meant to repeat this entire switch statement while the enclosed variable's value is greater than 0, only I didn't include the entire loop statement.

Thomas Mahoney wrote:... Oh, and line 37 is the tail end of a Do While loop meant to repeat this entire switch statement while the enclosed variable's value is greater than 0, only I didn't include the entire loop statement....

All things are lawful, but not all things are profitable.

Time flies like an arrow. Fruit flies like a banana. Steve flies like a tiny ad: