我如何初始化数组的先前定义的阵列在编译的时候?
How can I initialize an array of previously defined arrays at compilation time?
当脚本创建或初始化数组时,它就会设置类型化数组中元素的数量。
When the script creates or initializes the array, it sets the number of elements in a typed array.
可以什么不好的事情发生,如果我清楚我的阵列通过分配一个未初始化数组在帕斯卡尔?
Can anything bad happen, if I clear my array by assigning a non-initialized array to it in PASCAL?
类似地,在初始化数组或其他容器类型的元素的时候,也可能发生异常,同样,也要保证将会适当地撤销已构造的元素。
Similarly, an exception might occur when initializing the elements of an array or other container type. Again, we are guaranteed that the constructed elements will be destroyed.
其中第一个数组是string类型,分配了保存对象的内存空间后,将调用string类型的默认构造函数依次初始化数组中的每个元素。
In the first case, those objects are strings. After allocating memory to hold the objects, the default string constructor is run on each element of the array in turn.
VB9增加了数组初始化;但不幸的是其语法太冗长了。
VB 9 added array initialization; unfortunately the syntax is rather verbose.
实际的应用程序会从数据库中获得模型的数据,但为了简便起见,OrderBean将由一个静态数组初始化。
A real application would retrieve the model's data from a database, but for simplicity, OrderBean is initialized from a static array.
recvmsg和recvit函数初始化各种数组和结构,将接收的数据从内核发送到进程。
The recvmsg and recvit functions initialize various arrays and structures to send the received data to the process from the kernel.
VisualBasic10为数组初始化增加了类型推断。
Visual Basic 10 adds type inference for initialization arrays.
现在,要将这些结果转换成一个静态初始化的数组,我们需要删除这个程序的前半部分,并将其替换成手工计算出来的结果,如下所示
Now, to convert this to a statically initialized array, you would remove the first part of the program and replace it with something like this, calculated by hand
请注意在清单3中,有着同样的安装并调用(例如初始化argv和envp数组)的需求。
Note that in Listing 3, the same requirements exist to set up and make the call (such as initializing the argv and envp arrays).
在CDT中,此分区程序由四个String组成的一个数组来初始化,每个String命名了一个不同的分区。
In the CDT, this partitioner is initialized with an array of four Strings, each naming a different partition.
这个方法实例化一个名为noOptions 的 5 字节数组,它初始化为五个零。
This method instantiates a 5-byte array named noOptions initialized to five zeros.
初始化需要处理的数组,然后根据可用的worker数量,把数组分解成若干部分(子数组)。
Initializes the array and splits it up according to the number of available workers.
要创建一个类型为a [m]的一维数组(这里的m是一个已经被定义和初始化的整数变量),可以在uml模型中在这个数组变量a上运行cpp _type原型。
To create a single dimensional array of the type a [m] (where m is an integer variable already defined and initialized), apply the cpp_type stereotype on the array variable a in the UML model.
如何初始化一个对象数组?
有一个较短的方式来初始化一个数组的结构?
此数组使用NODE_PATH环境变量进行初始化,此环境变量是冒号分割的路径列表。
It is set initially from the NODE_PATH environment variable, which is a colon-delimited list of absolute paths.
清单5 - 8演示了如何构造并初始化一个数组和两个一般集合库中的类。
Listing 5-8 demonstrates how to construct and initialize an array and two classes from the generic collection library.
初始化上限字段的值,该值表示数组的第一个维度的大小。
Initializes the value of upper field, which represents the size of the first dimension of the array.
我有困难将数组转换成向量由于我如何初始化它。
I am having trouble converting arrays to vectors due to how I initialize it.
圆括号要求编译器对数组做值初始化,在本例中即把数组元素都设置为0。
The parentheses are effectively a request to the compiler to value-initialize the array, which in this case sets its elements to 0.
同样,数组变量的每个元素也单独初始化。
Similarly, each element of an array variable is initialized individually.
返回数组中不包括该类的初始化方法。
The class initialization method is not included in the returned array.
请注意,在上一个示例中,没有在初始化语句的左侧对隐式类型的数组使用方括号。
In the previous example, notice that with implicitly-typed arrays, no square brackets are used on the left side of the initialization statement.
可通过使用数组、字符串、大小固定的缓冲区或变量地址初始化指针。
You can initialize a pointer by using an array, a string, a fixed-size buffer, or the address of a variable.
指向一个含有位图初始化位值的短整形数组。如果为空,被创建的位图不进行初始化。
Points to a short-integer array that contains the initial bitmap bit values. If it is NULL, the new bitmap is left uninitialized.
以下示例说明如何声明、初始化和访问交错数组。
The following examples show how to declare, initialize, and access jagged arrays.
并初始化向量和数组的值在AS 3部分失败的一个矢量的目的?
Does initializing a Vector with an array of values in AS3 partially defeat the purpose of a Vector?
并初始化向量和数组的值在AS 3部分失败的一个矢量的目的?
Does initializing a Vector with an array of values in AS3 partially defeat the purpose of a Vector?
应用推荐