清单2显示了主程序循环的开头。
清单9展示了主程序循环的开始部分。
清单4显示了主程序循环中的三指检测的开始部分。
Listing 4 shows the beginning of the three-finger detection in the main program loop.
在主程序循环中,代码无需忽略标题行和输入的前两行。
In the main program loop, there is no need for the code that ignores the header lines and the first two lines of input.
清单3将启动主程序循环并读取synclient输出。
Listing 3 starts the main program loop and reads the synclient output.
要在模式间进行切换,需要对主程序循环的每次循环执行额外的检查。
To switch between modes, an additional check is required in each pass of the main program loop.
完成了基本变量声明和子例程后,程序将继续进行主程序循环,如下所示。
With the base variable declarations and subroutine complete, the program moves on to the main program loop, shown below.
创建与每个州名的电子邮件地址绑定的散列,将在主程序循环中检查该散列。
Create a hash keyed on E-mail address for each state name, to be checked in the main program loop.
应用程序的消息循环是内部程序循环,它从线程的消息队列检索消息,然后转换这些消息,之后将它们发送给要处理的应用程序。
An application's message loop is an internal program loop that retrieves messages from a thread's message queue, translates them, and then sends them to the application to be handled.
有些内存泄漏是由于程序错误发生的,在存在此类错误的情况下,应用程序代码中的无限循环会分配新的对象,并将其添加到可从程序循环范围外面访问的数据结构中。
Some memory leaks occur due to program errors in which infinite loop in the application code allocates new objects and adds them to a data structure accessible from outside the program loop scope.
该热循环仪带有一个程序控制模块。
在每一个实例下,我运行一个简单的程序,测定循环调用一个方法10,000,000次所需的运行时间,我调用了同步和非同步两个版本,并比较了结果。
In each case, I ran a simple program that measured the run time of a loop calling a method 10,000,000 times, calling both a synchronized and an unsynchronized version, and compared the results.
急诊室的故事中有17个不同类型的血液,包括适合特定程序或伤害的循环,血液凝结和嘴巴上的血液。
According to er's Einesman, there are 17 different types, including circulating, congealed and mouth blood — appropriate for specific procedures or injuries.
DOES-HALT永远不会存在,假如它存在的话就会产生上述悖论——当一个程序无限循环时才会停机,并且当它停机时才会无限循环。
No DOES-HALT program exists. If it did, we would be able to generate contradictions such as the above -- a program that halts when it should loop forever, and that loops forever when it halts.
程序将不断循环,直至输入匹配字符的有效密码和总输入时间。
The program will loop continuously until a valid password in character matching and total time of entry is entered.
冬天如果关闭超高温机械设备,管道就会冻住,造成昂贵的损失,工程师设置了一个复杂的循环程序让机器维持运转。
Unable to shut down superhot machinery in winter — the pipes could have frozen, causing costly damage — the plant's engineers kept the facility operating through a complicated recycling scheme.
这意味着循环体中执行的程序语句必须要改变表达式的值,否则循环将无法结束。
This means the program statements executed in the loop body must change the value of the expression — or else the loop will never end.
示例程序使用一个简单的循环。
这个程序将运行10次for循环,使用'wib “函数计算出累积值,最后打印出结果。”
This program runs around a for loop 10 times, calculating a cumulative value using the 'wib ' function and finally printing out the result.
相反,程序进入一个while循环,等待新的连接。
Instead, the program enters a while loop waiting for new connections.
此时,break语句导致程序执行中断while循环,跳转到else子句。
At this point, the break statement causes program execution to break out of the while loop, skipping the else clause.
在多线程程序中使用循环缓冲区。
最终,你可以执行这个程序,再使用for循环的地方使用while循环,这只是使你的代码看起来稍微有点不同。
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.
如果程序能为这两个循环都工作的话,你能假设它能为所有的循环工作。
If the program works for both instances of the loop, you can assume it will work for all of them.
这样,主范围内的循环和事件处理程序中的逻辑就可以控制事件处理程序的最终数目。
By doing so, the loop in the main scope and logic in the event handler controls the final number of event handler instances.
答:当流程中大多数步骤都顺序执行,而只有数量有限的循环或事件处理程序时,应该使用bpel流程。
Answer: You should use the BPEL process when most steps in the process are sequential, with only limited number of loops or event handlers.
接下来将会支持更多的结构化程序设计概念,如循环,使用宏将其转换为这种连续的传递形式。
The next step would be to support more structured programming concepts like loops, ie. translate them to this continuation passing style using macros.
本文讨论了循环缓冲区的一些常见实现,并对多线程程序中循环缓冲区的启用机制提出了一些观点。
This article discusses common implementations for ring buffer and proposes some ideas for enabling a ring buffer mechanism in multi-threaded programs.
本文讨论了循环缓冲区的一些常见实现,并对多线程程序中循环缓冲区的启用机制提出了一些观点。
This article discusses common implementations for ring buffer and proposes some ideas for enabling a ring buffer mechanism in multi-threaded programs.
应用推荐