keywords:continue

C++ Reference

continue

The continue statement can be used to bypass iterations of a given loop. For example, the following code will display all of the numbers between 0 and 20 except 10:

     for( int i = 0; i < 21; i++ ) {
       if( i == 10 ) {
         continue;
       }
       cout << i << " ";
     }

Related Topics: break, do, for, while