posted 18 years ago
Hi Shiva,
I think I can guess where your frown came from.
These labels can be tricky, especially in a do-while loop.
Where does the "continue" jump in this example?
It's tempting to say: "Well, it jumps to the label, and the next line is do, followed by if (i==2)."
But that's wrong.
The continue jumps to the while and the i is incremented.
If it wouldn't, the example would be an endless loop. But it isn't, it will print out
013READY
In the example the same would happen if you said continue; (without label).
Yours,
Bu.
all events occur in real time