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.
例如,编译器为了优化一个循环索引变量,可能会选择把它存储到一个寄存器中,或者缓存会延迟到一个更适合的时间,才把一个新的变量值存入主存。
And we won't wait here one hundred seconds for it to finish, but we're using the loop, we're updating a variable, and we're formatting it in a nice way.
我们将不会再这里等待100秒来等它完成,但是我们使用循环,我们更新一个变量,我们把它排成一个漂亮的格式。
So, the best declaration for an int variable in a tight loop would be.
那么,在一个小循环(tightloop)中,定义一个整型变量,最好类似这样。
As for the loop count variable, the first set variable action sets it to 2.
至于循环计数变量,第一个变量设置操作将其设置为2。
For-each loop: When iterating over an array, the compiler generates an induction variable and the standard array iteration idiom.
for - each循环:当迭代数组时,编译器生成归纳变量和标准的数组迭代语法。
In this example, the special replacement form will be the same printf for every line, so it is pre-stored in the FORMATTER variable before the second for loop begins.
在本例中,特殊替换形式对于每一行来说都将是相同的printf,因此它将在第二个for循环开始之前被预先存储到FORMATTER变量中。
If C99 lifted "variable declaration at top of block" constraint, why doing so in a "for loop" showing error?
如果C99解除“变量声明块”的约束,为什么这样做在一个“循环”显示错误吗?
The next section of code, the for loop, first retrieves all the childNodes of the first contact, when the variable j is initialized to zero.
接下来的一段代码是一个for 循环,当变量 j 被初始化为 0 时,该循环首先检索第一个联系人的所有 childNodes。
But notice unlike a for loop, if you want to declare a variable or increment or decrement to variable, you've got to do that yourself.
但请注意不像for循环,如果你想声明一个变量,或者变大或变小一个变量,你需要自己完成。
Because you assign the output of the entire for loop to the variable, the effect is that you place a list of the quasi-RSS item XML into the variable for all feeds.
因为要将整个for循环的输出指定给变量,所以结果就变成您将准rss项x ML放置在用于所有提要的变量中。
Once the code has iterated over all the elements in the tuple, it enters the else clause of the for loop, which prints out the value of the count variable.
一旦代码已经迭代了tuple中的所有元素,它将进入for循环的else子句,打印count变量的值。
The second for loop simplifies this process a little by using an implicit variable (that is, one that isn't explicitly created) for the file object.
第二个for循环通过使用file对象的隐式变量(也就是说,变量不是显式创建的),对这个过程稍做了点儿简化。
To refresh your memory, Listing 20 shows how a typical for loop might be used — note the usage of an index variable to not only move through the list, but also to indicate position.
为了提醒您,清单20显示了典型for循环的一个可能用法。
The paper proposes an approach to design a dual-loop variable structure controller for a particular class of singularly perturbed dynamic systems.
针对一类典型的奇异摄动动力学系统提出了双回路变结构控制器的设计方法。
Types permitted in for loop variable declarations?
类型允许在循环变量的声明?
To calculate the sum you need to declare a variable out of the for loop scope. so declare a variable say sum and after each input add price to sum.
计算你需要声明一个变量的循环范围的总和。所以声明一个变量表示和每个输入添加价格和后。
For the inverted pendulum system with multi-variable and nonlinear characteristic, a double closed-loop cascade fuzzy control approach was put forward based on Takagi-Sugeno fuzzy model.
在对火电厂过热汽温控制对象特点分析基础上,保留串级控制抗内扰的性能,结合模糊控制动态特性好的特点,提出了一种复合模糊串级控制设计。
For the inverted pendulum system with multi-variable and nonlinear characteristic, a double closed-loop cascade fuzzy control approach was put forward based on Takagi-Sugeno fuzzy model.
在对火电厂过热汽温控制对象特点分析基础上,保留串级控制抗内扰的性能,结合模糊控制动态特性好的特点,提出了一种复合模糊串级控制设计。
应用推荐