the if-case is taken only one time in the while-loop, why?

What is that "continue" for ?

The continue keyword has almost no legitimate use in C/C++