Hi Ben,
>This is not true if you use 'continue'.
Yes, it's still true. Here's the for-loop:
for(int i = 0; i < 100; ++i) {
if(i % 10 == 4)
continue;
cout << i << endl;
}
Convert the syntactic sugar for-loop to while-loop...
{
int i = 0;
while(i < 100) {
if(i % 10 == 4)
goto step;
cout << i << endl;
step:
++i;
}
}
--Eljay