简介C语言中,continue语句一般形式为"continue;"
其作用为结束本次循环。即跳出循环体中下面尚未执行的语句,接着进行下一次是否执行循环的判定。
continue语句和break语句的区别是:
continue语句只结束本次循环,而不终止整个循环的执行。而break语句则是结束整个循环过程,不再判断执行循环的条件是否成立。
continue语句的作用是跳过循环本中剩余的语句而强行执行下一次循环。
continue语句只用在for、while、do-while等循环体中, 常与if条件语句一起使用, 用来加速循环。
示例
#include<stdio.h>
int main()
{ int n;
for(n=100;n<=200;n++)
{ if(n%3==0)
continue;
printf("%d
",n);
}
fflush(stdin);
getchar();
}
//其作用是:结束本次循环,即跳过循环体下面尚未执行的语句,接着进行下一次是否执行循环的判断.
continue
KK: []
DJ: []
vi.
1. 继续,持续;延伸[(+with)]
The forest continues for miles.
森林绵延数英里。
2. 留,仍旧[L]
The weather continues cold.
天气还是冷。
3. 继续说
vt.
1. 使继续;使延伸[+v-ing][+to-v]
I was allowed to continue using the library.
我获准继续使用该图书馆。
They continued to meet every week.
他们继续每周见面。
He continued his writing for another year.
他又继续写了一年。
2. 使留任
The company continued him in office for another year.
公司留他继续任职了一年。
3. 继续说
"Don't worry about Jack," she continued.
"不必担心杰克,"她继续说道。
4. 【律】延期(诉讼)
The judge continued the case until next
[1]