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.
这意味着循环体中执行的程序语句必须要改变表达式的值,否则循环将无法结束。
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.
最合理的方法是做一遍基本流程,一遍循环流程,然后再做一遍循环流程。
The routing between the general step (with no name) and While Loop contains logic that corresponds with the loop condition.
通用步骤(没有任何名称)和While循环之间的路由包含与循环条件对应的逻辑。
This example USES two for loops. The outer for loop takes care of each row in The Times table, and the nested for loop takes care of the columns within each row.
本例使用两个for循环,外面的for循环关注乘法表中的每一行,嵌套的for循环关注每行内的列。
The while loop declaration describes the conditions under which the loop will continue.
while循环声明描述循环继续的条件。
The system task named while loop points to an activity set that contains tasks corresponding to the ones in the while loop (Figure 12).
名称为while循环的系统任务指向一个活动集,该活动集包含与while循环中的任务对应的任务(图12)。
At the end of the day, you can implement the exact same program using a while loop that you can using a for loop, it's just your code is going to look slightly different.
最终,你可以执行这个程序,再使用for循环的地方使用while循环,这只是使你的代码看起来稍微有点不同。
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.
然后,我们将遍历列(第一次循环)并将其余的标题栏单元格添加到该行,并在遍历结束之后将该行添加到提供程序。
To ship the rest of the items, we just need to let the loop iterate again, since the activity that calls to the shipping component is at the start of the loop.
要发送其余的商品,我们只需再重复一次循环即可,因为调用发送组件的活动在循环的开始处。
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子句。
There's more: the for loop can be utilized to iterate over any object that supports the iteration metaphor, which makes the for loop very powerful.
还有更多信息:for循环可以用于迭代支持迭代metaphor的任何对象,这使for循环非常有用。
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,第二次,对不起,在第一次进入循环的时候,答案就是。
Since the loop condition is checked before each iteration, the steps in the loop would not run at all if the condition is initially false.
由于在每次迭代之前检查循环条件,因此,如果条件最初为false,则循环中的步骤不运行。
The main function creates a Glib event loop, gets a connection to the session bus, and integrates the D-BUS event handling into the Glib event loop.
main函数创建一个Glib事件循环,获得会话总线的一个连接,并将D -BUS事件处理集成到Glib事件循环之中。
The main function creates a Glib event loop, gets a connection to the session bus, and integrates the D-BUS event handling into the Glib event loop.
main函数创建一个Glib事件循环,获得会话总线的一个连接,并将D -BUS事件处理集成到Glib事件循环之中。
应用推荐