Consider this a "freebie". In the future, my serious response will be: Did you write a simple program to test this behavior?
Code:
#include <stdio.h>
int main(void)
{
int i;
for (i = 0; i < 3; i++) {
printf("i = %d\n", i);
switch (i) {
case 0:
case 1:
case 2:
continue;
break;
}
puts("If this prints, the continue statement didn't work");
}
return 0;
}
It won't be hard to pull out the bug if you don't code it straight into your big program.
EDIT: Also, if adding a switch statement with a continue will make debugging that difficult, then I suspect one of two things. Either your code is not well organized/designed (perhaps a symptom of writing code before you fully understand the problem and have planned a solution on paper) or you are doing way too much coding between stopping to compile/test. Seriously, compile/debug/test every 10 or 20 lines of coding, or thereabouts, especially if you're fairly new to programming.