在C / C ++中继续执行语句
Continue语句是循环控制语句。它与break语句相反,并强制执行下一条语句。
这是C语言中的continue语句的语法,
continue;
这是C语言中的continue语句的示例,
示例
#include <stdio.h>
int main () {
int a = 50;
do {
if( a == 55) {
a = a + 1;
continue;
}
printf("Value of a: %d\n", a);
a++;
} while( a < 60 );
return 0;
}输出结果
Value of a: 50 Value of a: 51 Value of a: 52 Value of a: 53 Value of a: 54 Value of a: 56 Value of a: 57 Value of a: 58 Value of a: 59
热门推荐
1 带狗狗训练
4 听力训练狗狗
6 怎训练狗狗
7 腹肌训练狗狗
8 网球训练狗狗
9 记叙文训练狗狗
10 狗狗太凶怎么训练
11 核心力量训练狗狗
12 狗狗乱叫怎么训练
13 发音训练狗狗
14 怎么训练狗狗叼东西给主人
15 荆州训练狗狗
16 篮球训练狗狗
17 做训练狗狗
18 训练狗狗坐姿