> 英语 >
帮忙翻译哭了哦我
int max_tries = 3;
int tries_cnt = 0;
while ( tries_cnt < max_tries )
{
// read user guess
if ( usr_guess == next_elem )
break;// terminate loop
tries_cnt++;
// more stuff
}
The program can short-circuit execution of the current iteration of the
loop by executing a continue statement. For example, consider the
following program fragment in which all words of fewer than four characters
are discarded:
人气:165 ℃ 时间:2020-06-17 11:39:21
解答
int max_tries = 3; int tries_cnt = 0; while ( tries_cnt < max_tries ) { // read user guess 读取用户猜想if ( usr_guess == next_elem ) break; // terminate loop 循环结束(用户猜对了)tries_cnt++; // more s...
推荐
猜你喜欢
© 2024 79432.Com All Rights Reserved.
电脑版|手机版