Switch not Compiling

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

Why will this simple switch typing not work ? Project attached.

Note the first error goes away in the switch construct if I eliminate "case 4 :"

Regards, Dana.

0 Likes
1 Solution
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

There is a semicolon missing after the colon of case 4

there is a "}" missing at the end to close the main()

Happy coding

Bob

View solution in original post

2 Replies