当您在一个类中拥有一定的属性时,您应该能够利用一些初始值来初始化这些属性。
When you have attributes in a class, you need to be able to initialize these attributes with some initial values.
例如,以下代码指定数组中几个子范围的初始值。
For example, the following code specifies initial values for sub-ranges of an array.
设置的初始值和指针因算法不同而不同。
What you set the initial scores and Pointers to differs from algorithm to algorithm, which is why the DynamicProgramming class, as shown in Listing 4, defines two abstract methods!
使用这个命令创建AIX用户并设置初始值。
You use this command to create the AIX user and set its initial values. There are a few simple rules to remember when creating a user.
等号和表达式给出的初始值在变量声明时实际上是可选的。
The equal sign and the expression giving the initial value are in fact optional in a variable declaration.
数组初始值设定项也可以在调用函数中内联使用。
Array initializers may also be used inline for calling functions.
然而,通常情况下要通过从表中提取值来获得阵列的初始值。
It is often the case, however, that the initial value for an array is obtained by extracting values from a table.
利用atom函数,可获得作为初始值包装的atom对象。
By using the atom function, you get an atom object that is a wrapper around the initial value.
current参数的初始值是数组内的第一个元素。
The current parameter starts off as the first element in the array.
该业务对象的初始值是在流程开始时定义的,如清单4 所示。
The initial value of this business object is defined when the process starts, as shown in the Listing 4.
对于其他特定环境和系统,很可能需要优化这些初始值。
It is highly likely that these values will need to optimized for each particular environment and system.
表单数据模型(数据提交时的行为、初始值等)和表示分离开来。
A form's data model (how it behaves when data is submitted, initial values, and more) is separated from its presentation.
它们分别指定迭代索引的初始值以及迭代索引的终止值。
They specify the initial value of the index for the iteration and the index value at which iteration should cease, respectively.
再次利用agent函数包装droid和history的初始值。
Once again you start off by wrapping the initial values of droid and history by using the agent function.
每个属性将有getter和setter与之关联,还有一些初始值。
Each property will have a getter and setter associated with it, along with some initial value.
previous参数有一个初始值,在本例中,是一个空白字符串。
The previous parameter starts off with the initial value, or, in this case an empty string.
通过以初始值创建属性来利用代码的信息,逆向工程保持了联系的初始化。
Reverse engineering preserves initialization of associations by creating attributes with initial values to leverage that information from the code.
数值初始值设定项现在可支持类型引用,这样大大减少了代码量。
Array initializers now support type inference, significantly reducing the amount of code that needs to be typed.
如果异常是从静态字段初始值设定项引发的,也存在同样的规则。
The same rules hold true if the exception is thrown from a static field initializer.
但如果没有它们,很可能会引发编程错误,因为变量的初始值依赖于上下文。
Leaving them out, however, can often lead to programming errors because the initial value of the variable depends on the context in which it is declared.
注意:应当始终对初始值和新值进行归档,以防需要恢复到初始值。
Note: It is always a good idea to document the original value and new value in case you need to change back to the original value.
你可以滑动圆柱体边上的滑钮设定初始值,然后转动手柄来计算结果。
You set your initial figures by sliding knobs along the side of the cylinder, then turn the crank to compute the results.
清单9中的代码将首先警告Flex应用程序中的文本输入控件的初始值。
The code in Listing 9 first alerts the original value of the text input control from the Flex application.
可以通过使用semctl将信号量计数器的初始值设置为0来获得信号量。
A semaphore can be owned by setting the initial count of the semaphore to 0 using semctl .
本文还讨论了如何在应用服务器上配置内存、线程池和JDBC连接池的初始值。
The article also discusses how to initially configure the memory, thread pool, and JDBC connection pool on the application server.
在行的每个列中包含where子句谓词,来确定每列的值是否与其初始值相同。
Include WHERE clause predicates for every column on the row to see if each column value is the same as its original value.
此程序还演示了静态字段初始值设定项如何在显式类型构造函数中的代码之前执行。
This program also demonstrates how static field initializers execute before the code inside an explicit type constructor.
即每一个接入互联网的机器所拥有的唯一IP号,并且初始ip号值初始值计算好。
So each machine connected to a network that's connected into the Internet has a unique IP number.
请注意,在刷新人员解析结果时,将不考虑对上下文变量值的更新,而是重用初始值。
Be aware that when a staff resolution result is refreshed, updates to the context variable values are not considered, but the initial values are re-used.
它们也可以作为运行单元跨越程序的生命周期,并针对每个程序或方法条目重设初始值。
They can also span for the lifetime of a program as run units and are reset to their initial value on each program or method entry.
应用推荐