continue [C++ Reference]
Keywords: keywords,continue
Date: 2008-10-14T15:42:04-0700

[[continue]]
C++ Reference
Translations of this page?:

- en
- br-pt
- cn
- cz
- de
- es
- fr
- it
- jp
- nl
- pl
- ro
- ru
- sk
- tr
- tw

## 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

Edit this page • Old revisions
• • • Login • Index • Recent changes • RSS • cc •