Compiler Error C2044

illegal continue

A continue statement is legal only within a do, for, or while statement.