switch statement problem

While working in your IDE and assuming the code compiles, press Ctrl-T before you post your code. That formats the code to a standard C-style format and makes it easier for us to read.