Case

Can you have more than 1 set of Switch Case statements in a program? Referencing different variables? Is there a reason not to use more than 1 set?

You can use as much as you want, no limits.

Is there a reason why I should not use Case Switch statements?

Is there a reason why I should not use Case Switch statements?

A switch statement with only one or two cases produces large code than a pair of if statements. With more than two cases, the switch statement code is smaller.

If space is not a concern, or you have more than 2 cases, then, no, there is not reason not to use them.

415porto:
Is there a reason why I should not use Case Switch statements?

Case switch is just one of several control structures avalible in gcc C/C++. You are free to use any of them as often as required for your applications. However using the goto statement will get you lots of feedback from the peanut gallery. :smiley:

Lefty

IMHO , there are no any reason.
I's style of programming, all depends on your choice.
"de gustibus non disputandum" as they say.
I personally would prefer "for" operator, to make code compact,
in nested loops.