名前空間
変種
操作

do-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.
コー​​ドには、いくつかの条件が存在している間、何度も実行する必要がどこに使用されます。コー​​ドは少なくとも1回は実行され.
Original:
Used where code needs to be executed several times while some condition is present. the code is executed at least once.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

目次

[編集] 構文

do loop_statement while ( cond_expression )

[編集] 説明

cond_expressionは、その結果boolに変換可能な表現でなければならない。それはloop_statementの各実行後に評価される。 cond_expressiontrueに評価された場合にのみループが実行を継続.
Original:
cond_expression shall be an expression, whose result is convertible to bool. It is evaluated after each execution of loop_statement. The loop continues execution only 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.

[編集] キーワード

do, while

[編集]