|
1. | Cannot BREAK, CONTINUE or EXIT out of a FINALLY clause |
| 超出FINALLY子句的范围,不能使用BREAK,CONTINUE或EXIT语句 |
|
|
| |
2. | This program shows examples of break and continue within for and while loops: |
| 下面这个程序向大家展示了break和continue在for和while循环中的例子: |
|
|
| |
3. | Here is a demonstration of labeled break and continue statements with while loops: |
| 下面这个例子向大家展示了带标签的break以及continue语句在while循环中的用法: |
|
|
| |
4. | (1).A plain continue goes to the top of the innermost loop and continues. |
| (1) 简单的一个continue会退回最内层循环的开头(顶部),并继续执行。 |
|
|
| |
5. | BREAK or CONTINUE outside of loop |
| BREAK或CONTINUE超出循环 |
|
|
| |
6. | But in case 3, the continue label1 breaks out of the inner iteration and the outer iteration, all the |
| 但在条件3中,continue label1却同时中断内部循环以及外部循环,并移至label1处。 |
|
|
| |
7. | In case 2, the continue moves back to the beginning of the inner iteration. |
| 在条件2中,continue移回内部循环的起始处。 |
|
|
| |
8. | (2).A labeled continue goes to the label and re-enters the loop right after that label. |
| (2) 带有标签的continue会到达标签的位置,并重新进入紧接在那个标签后面的循环。 |
|
|
| |
9. | However, it does have something that looks a bit like a jump tied in with the break and continue keywords |
| 然而,在break和continue这两个关键字的身上,我们仍然能看出一些goto的影子。 |
|
|
| |
10. | The continue statement causes execution to go back to the top of the iteration loop (thus incrementing |
| 只要i不能被9整除,continue语句会使程序流程返回循环的最开头执行(所以使i值递增)。 |
|
|
| |