名前空間
変種
操作

while loop

提供: cppreference.com
< c‎ | language

ループを実行.
Original:
Executes a loop.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
コー​​ドには、いくつかの条件が存在している間、何度も実行する必要がどこに使用され.
Original:
Used where code needs to be executed several times while some condition is present.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

目次

[編集] 構文

while ( cond_expression ) loop_statement

[編集] 説明

cond_expressionは、その結果boolに変換可能な表現でなければならない。それはloop_statementcond_expressionと評価された場合にのみ実行されtrue、それぞれの実行前に評価されます.
Original:
cond_expression shall be an expression, whose result is convertible to bool. It is evaluated before each execution of loop_statement, which is only executed if the cond_expression evaluates to true.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
は文の終端として使用することができます.
Original:
If the execution of the loop needs to be terminated at some point,
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
はショートカットとして使用することができます.
Original:
If the execution of the loop needs to be continued at the end of the loop body,
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[編集] キーワード

while

[編集]