类成员变量循环后重置吗?
什么是循环变量?
常见的一种特殊情况就是在循环外部声明变量。
One special case that shows up frequently is declaring variables outside of loops.
所以在比较关键的循环中,我们要不使用全局变量。
We should therefore not use global variables inside critical loops.
我们将在本文中稍后讨论循环变量。
毫无疑问,最常见的调试步骤是设置断点,这样可以检查条件语句或循环内的变量和值。
Undoubtedly, the most common debugging procedure is to set breakpoints that will allow the inspection of variables and the values inside conditional statements or loops.
在极少使用和测试的不重要情形中疏忽了为循环变量设置新值,这是常见的程序设计错误。
A common programming error is failure to set new values for loop variables in corner cases that are rarely used and tested.
清单20演示了如何使用循环变量来创建名称。
Listing 20 shows how names can be created using a loop variable.
毕竟XSLT缺少对很多算法来说极其重要的特性,其中包括循环和可变的变量。
After all, XSLT is missing some features that are important to a lot of algorithms, including loops and mutable variables.
通常在循环中给定的变量能够以多种方式改变状态。
Usually within loops, there are several ways that a given variable can change state.
您可以方便地创建变量、循环,使用条件和创建函数。
You won't have any trouble creating variables, looping, using conditionals, and creating functions.
完成了基本变量声明和子例程后,程序将继续进行主程序循环,如下所示。
With the base variable declarations and subroutine complete, the program moves on to the main program loop, shown below.
如清单1所示,变量和诸如循环等脚本控制结构使脚本更容易编写和维护。
As demonstrated in Listing 1, variables and script control structures, such as loops, make scripts easier to write and simpler to maintain.
所有这四个变量都是在循环外声明的,尽管它们仅在循环内部使用,但作用域不止于此。
All four variables are declared outside the loop and therefore have excessive scope even though they're only used inside the loop.
观察点是流程(任务、子流程、变量及循环)中的一些位置,在此需要测量以使KPI生效。
Observation points are the points in a process (tasks, subprocesses, variables, and loops) where measurements are needed to validate the KPI.
例如,编译器为了优化一个循环索引变量,可能会选择把它存储到一个寄存器中,或者缓存会延迟到一个更适合的时间,才把一个新的变量值存入主存。
For example, a compiler may choose to optimize a loop index variable by storing it in a register, or the cache may delay flushing a new value of a variable to main memory until a more opportune time.
至于循环计数变量,第一个变量设置操作将其设置为2。
As for the loop count variable, the first set variable action sets it to 2.
所有这些变量将在主循环中用到。
All these variables will be useful in the course of the main loop.
另一个重要的更改是XPath 2.0支持循环和变量。
Another significant change is that XPath 2.0 supports loops and variables.
常用的汇编级结构,比如变量、循环、标签和宏。
Common assembly level constructs such as variables, loops, labels, and macros.
这些例子演示scheme的一些关键特性,此外还演示了变量、条件和循环。
These examples illustrate variables, conditionals, and loops in addition to some of the key features of Scheme.
接下来,只要它发现有数字或字母,就一直循环下去,并将字符累积在变量(token )中。
Next it loops for as long as it finds digits or letters and accumulates the character in a variable (token).
因为for循环给我提供了为变量准备的占位符,它们在分号之间,现在在while循环中,我没有这些。
Because the for loop hands me placeholders in between those semicolons for variables and such, now I don't have those with while loops.
后一种方法还会将您与视图中使用的临时循环变量名称_ course联系起来。
The latter approach also ties you to the name of the temporary loop variable used in the view, _course.
除首字母大写外、用小写字母打印并排序所有环境变量的多行循环。
A multi-line loop to print all the environment variables in lowercase, with the first letter uppercase, and sorted.
使用map,并且除首字母大写外、以小写字母打印并排序所有环境变量的多行循环。
A multi-line loop to print all the environment variables in lowercase, with the first letter uppercase, and sorted, using map.
除首字母大写外、用小写字母打印并排序所有环境变量的单行循环。
A one-line loop to print all the environment variables in lowercase, with the first letter uppercase, and sorted.
使用map,并且除首字母大写外、以小写字母打印并排序所有环境变量的单行循环。
A one-line loop to print all the environment variables in lowercase, with the first letter uppercase, and sorted, using map.
在模块include语句和初始变量声明之后,进入主控制循环。
After the module includes and the initial variable declarations, the main control loop is entered.
临时变量设置完成后,一个for循环将处理每个span元素,并在文本加密后删除这些内容。
After setting up some temporary variables a for loop will process each of those span elements, and the contents will be written out if the text is encrypted.
应用推荐