Im trying to use a switch statement to jump to a different function. All of the lessons I find just tell me how to turn on leds or outputs. So I have no idea of what to do here. So far I have this.
{
int range; // I just used this cause it was in an example, I think I need it to name my switch statement.
int flasha; // This is the subroutine I want to run. I will have more late just trying to figure out the first one.
switch(range);
{
case 0: // I don't know why I have to use "0" it is just in all of the examples and nothing else works.
state==1, flasha; // state is my input. When a button is pressed it will count the number of presses and send it to the approiate subroutine.
break:
}
}
When I compile this program I get the error
case label '0' not within a switch staetment.
Can anyone explain what this means or what I'm doing wrong?
Thanks


