The continue
statement does not mean to continue on the next line. It causes the remaining portion of the enclosing for, while or do-while loop body to be skipped.
Refer to cppreference (or many other places) for a description of the keyword.
continue
is a feature of the C programming language (as well as many languages including C++, Java, etc). It is not specific to Linux.
I've often thought the name is counter-intuitive. In perl, even though much of the syntax is C-like, the keyword next
is used to skip to the next loop iteration, which seems more intuitive to me.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…