But even with the simplicity of this loop construct, you can build any complex loop.
然而仅仅使用简单的循环结构,您也能构建任意复杂的循环。
Like any software reading a file, the parser is built around a reading loop: a loop that progresses through the file.
和读取文件的任何软件一样,解析器也是围绕着读循环(读入文件的循环)创建的。
This means the program statements executed in the loop body must change the value of the expression — or else the loop will never end.
这意味着循环体中执行的程序语句必须要改变表达式的值,否则循环将无法结束。
In cases where a break combination is part of an alternative or a loop, then only the alternative or loop is exited.
在这种情况下,跳转组合是变体或者循环的一部分,然后只是变体或循环被退出。
The loop in this sequence diagram USES a Boolean test to verify if the loop sequence should be run.
如果循环序列应该运行,这个序列图的循环使用一个布尔测试确认。
All four variables are declared outside the loop and therefore have excessive scope even though they're only used inside the loop.
所有这四个变量都是在循环外声明的,尽管它们仅在循环内部使用,但作用域不止于此。
Remember also that each iteration through the loop wastes time, so rather than working through the same loop a number of times, try to perform all the actions in one pass through the loop.
还要记住的是,在循环中,每次反复都是在浪费时间,因此不要多次使用相同的循环,而是要尽量在一个循环中执行所有的操作。
As the loop progresses, each record is wrapped in its own directory entry tags; after the loop is complete, the setup for the buttons begins.
循环进行时,每条记录都被封装到记录自己的目录条目标记中;循环完成后,按钮的设置就开始了。
The reasonable approach is to do the basic flow once, do a loop once, and then do a loop a second time.
最合理的方法是做一遍基本流程,一遍循环流程,然后再做一遍循环流程。
Your code should (almost) never have multiple nested loops (a loop inside a loop inside a loop). Most of the code written today should use Hashtables, simple lists and singly nested loops.
在编写代码时应尽量避免嵌套循环,目前大多数代码都是使用了哈希表、简单链表和单循环。
The routing between the general step (with no name) and While Loop contains logic that corresponds with the loop condition.
通用步骤(没有任何名称)和While循环之间的路由包含与循环条件对应的逻辑。
The while loop declaration describes the conditions under which the loop will continue.
while循环声明描述循环继续的条件。
The enhanced for loop (also sometimes known as "for-each" loop) can be used for collections that implement the Iterable interface and for arrays.
改进for循环(有时被称为“for - each”循环)能够用于实现了iterable接口的集合类及数组中。
A while loop is a loop that repeats the included activities while some condition is satisfied.
一个while循环在满足一些条件的情况下,将重复所包含的活动。
This is less "robust" in a sense than OS threads -- but it would not require much extra machinery to catch exceptions inside scheduler()'s loop rather than outside the loop.
这在某种意义上“健壮性”不如OS线程 ―不过在scheduler()的循环内捕获异常不会比在循环外需要更多的机器资源。
In this loop, a new PatientRecord is returned each time the loop is executed.
在该循环中,一个新的PatientRecord在每次执行循环时返回。
The while loop (like the for loop introduced later in this article) supports three additional statements
while循环(与本文后面介绍的for 循环一样)支持三种附加语句
Because the hint is before the loop body, this code leaves your hint active for every iteration of the loop, but it only has to use one cycle.
由于提示位于循环体之前,因此这段代码将使提示对于循环的每次迭代都保持活动状态,不过它只使用了一个周期。
The advantages of adding a loop are that the loop is visible, and that you can control the rate of iterations through the loop if needed.
添加一个循环的好处在于循环是可见的,并且如果需要的话您可以通过循环控制迭代的速率。
Unfortunately, because the loop branch is so close to the return statement, you cannot predict both the loop branch and the return branch.
不幸的是,由于循环分支太接近返回语句,因此您无法预测循环分支和返回分支。
Then we loop over columns (first loop) and add the rest of the header cells to this row and add the row to the provider after the looping is done.
然后,我们将遍历列(第一次循环)并将其余的标题栏单元格添加到该行,并在遍历结束之后将该行添加到提供程序。
Now instinctively, prefer the for loop or the while loop?
现在凭感觉,你们喜欢for循环还是while循环?
The outer collect loop iterates over these reservation groups, and the inner collect loop iterates over the servers contained within each restrain group.
外部的collect循环遍历这些保留组,而内部的collect循环遍历每个限制组中的服务器。
Modeler loops are mapped to FileNet constructs for each loop, by having one step to represent the condition check in the loop, and another step to represent the contents of the loop.
Modeler循环映射到每个循环的FileNet构造,方法是使一个步骤表示循环中的条件检查,使另一个步骤表示循环的内容。
One special feature of the break statement is that it breaks completely out of the loop, thereby skipping any else clause that follows the loop.
break语句的一个特殊特性是,它完全中断循环,并跳转到循环下面的任一个else子句。
The Structures folder in the palette now includes a repeat until loop that repeats the activities in the loop container, until a condition is true.
面板中的Structures文件夹现在包括RepeatUntil循环,此循环重复循环容器中的活动,直到某个条件为True。
The first is loop unrolling, a technique where the instructions called in each iteration of the loop are replicated to form a single sequence.
首先是循环展开(loop unrolling),它是这样一种技术:复制循环的每次迭代所调用的指令以构成一个序列。
If you clicked + to expand a while loop, the editor showed just the contents of the while loop.
如果单击+以展开while循环,编辑器仅显示while循环的内容。
So first time through the loop, the answer is a. Second time it-sorry, as it enters the loop, at the time it enter exits a the answer is a.
当第一次完成循环的时候,答案是a,第二次,对不起,在第一次进入循环的时候,答案就是。
So first time through the loop, the answer is a. Second time it-sorry, as it enters the loop, at the time it enter exits a the answer is a.
当第一次完成循环的时候,答案是a,第二次,对不起,在第一次进入循环的时候,答案就是。
应用推荐