In this case, I create an array of hash tables — a common method to store structured data such as this.
在本例中,我创建了一个散列表的数组——用来存储这类结构式数据的一种常见方法。
So the solution is simple: create a wrapper for the array, as shown in Listing 3.
所以,解决的方法很简单:为数组创建一个“包装”,正如清单3所示。
With the index array of scores created, we use the standard sort command as described in section 4 of the perlfaq to create the @sorted array of ordered search results.
创建分数索引数组后,我们将按照perlfaq的第 4部分中的说明使用标准排序命令来创建排序后搜索结果的 @sorted 数组。
Instead, they use relations among tables to create a one-to-many structure between objects, which has the same effect as an array.
相反,它们使用表之间的关系来创建对象之间的一到多结构,这与数组具有相同的效果。
One way would be to create an array of booleans, one for each line of the original method, and add code that sets the appropriate flag as each line is executed.
可以使用的一种方法是创建一个布尔值数组,初始方法中的每一行代码对应一个布尔值,然后添加代码,每执行一行代码就设置相应的标志。
Indexers are a syntactic convenience that enable you to create a class, struct, or interface that client applications can access just as an array.
索引器在语法上方便您创建客户端应用程序可将其作为数组访问的类、结构或接口。
The dictionary class is very similar to an associative array, however a bit more powerful. The dictionary allows you to create maps based on complex objects as the keys for the key-value pair.
字典类和索引数组非常类似,当然字典类更加强大,字典允许你使用复杂的类作为键。
The dictionary class is very similar to an associative array, however a bit more powerful. The dictionary allows you to create maps based on complex objects as the keys for the key-value pair.
字典类和索引数组非常类似,当然字典类更加强大,字典允许你使用复杂的类作为键。
应用推荐