I'd bet you forgot to enclose your switch case statement in a set of brackets so it's only including the line immediately following the switch statement as part of the test. But like vlad says, we needs mo' code.
I think it is not the break that is the reason of the error. it is the continue that is the reason of the compiler message. continur may not be used outside any loop. The swicth statement is not a loop statement.
Don't delete your posts, I've posted even worse garbage on this site and you won't see me removing it because of something silly like pride. Also vlad brought up several legitimate concerns that need to be addressed.