Problem with the switch statement/cases.
|
whats an orphaned case?
well i removed a bracket and got orphaned case 117 and then when i added the bracket back i got 100 errors?
An orphaned case (NOT to be confused with duplicate label) is an error that pops up on compilation when there's a case outside a switch statement (the case is an orphan as it has no parent switch statement).
It's the result of ending the switch statement too soon, this is often done when a case is added or removed.
To solve it you'll need to find out which end bracket ('}') belongs to the start bracket ('{') of the switch statement. Depending on the location and the code you'll have to decide what to do.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |