For modularity and to introduce the concept of functions, the sort routine itself is implemented as a separate procedure along with the array print routine.
为了实现模块化和介绍函数的概念,排序例程本身实现为一个单独的过程,数组输出例程也是这样。
The code in Listing 4 shows how you can sort an array of Czech words differently based on the locale used for the collator.
清单4内的代码显示了如何基于为这个collator所用的locale来对由捷克文组成的一个数组进行排序。
The function used to sort the array is the compareFunction that was passed into the function when it was called.
用于对数组进行排序的函数是compareFunction,该函数是作为参数传递给 sort 函数的。
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 数组。
For example, the compare method compares two strings; the sort and asort methods sort arrays or associative arrays in a way similar to the corresponding PHP array functions.
比如,compare方法比较两个字符串;sort和asort方法以与相应的php数组函数相同的方式对数组或关联数组进行排序。
sortBy is an array of sort objects that determines how the returned array is sorted.
sortBy是一个sort对象数组,用于确定如何对返回的数组排序。
Before building the rows of the table, the code USES the array_multisort function to sort the array of rules by the starting port number of each rule.
在构建表格行之前,以上代码使用array _ multisort函数根据每个规则的起始端口号对规则数组排序。
The example program for this section implements a selection sort on an array of integers.
本节的示例程序在一个整数数组上实现选择排序。
Because you build up a list in simulations of the sort we looked at, and then you might want to change it to an array to perform some operations on it.
因为你建立了一个链表,就像我们现在看到的,然后你可能想把它转化为一个行列式,从而进行一些操作。
This helps the analyst focus on what’s important, not on trying to sort through the array of potential data sources.
这有助于使分析集中于重要的东西,而不是试图翻遍所有潜在的数据源。
Implement an algorithm to sort an array. Why did you pick the method you did?
实现算法分类一个阵列。你为什么挑你做的方法?
Data Studio Administrator provides an array of views that enable you to sort and filter your database objects.
DataStudioAdministrator提供一系列视图,可以用它们排序和筛选数据库对象。
One case of replacement is sorting, where elements are replaced with different elements so that the resulting array is in sorted order (the built-in sort method is provided for this action).
替换的一种情况是排序,将元素替换为不同的元素,从而对其进行排序(内置的sort方法可用于此操作)。
How do I know that it's the Array class whose sort method is called? I wrote another expression to make sure?
我怎样能知道调用的是Array类的sort方法呢?
If you do not wish to sort the source array, you can always make a copy of it.
如果你不希望源数组排序,你可以将它复制。
Why does sort take an Object array?
为什么把一个对象数组排序?
When you sort an array using selection sort, you choose the smallest element in the rest of the array on each cycle of the loop.
当你对数组使用选择排序,你选择最小的元素,其余的阵列每一个周期的循环。
The criteria to sort an array of objects is usually formed by the name of the fields, and an indication of ascending or descending order (like an SQL "order by" clause).
排序一组对象的标准通常由域的名称形成,同时指出是升序还是降序。
Making your request specific can help your child start to sort through a bewildering array of fears and feelings.
提出明确的要求会帮助孩子整理一系列令人迷惑的恐惧和感觉。
Unlike nearly every other sort, items are never written elsewhere in the array simply to push them out of the way of the action.
不同于其它排序的是,元素不会被放入数组的中任意位置从而推动排序。
You can clone the original array, sort the clone, and count and/or mark the locations of the 1s as needed.
你可以克隆原始数组排序,克隆人,和计数和/或标记的位置1的需要。
How do I read an array of structs from a file and sort it?
我如何从文件中读取一个结构体数组和排序吗?
Implement an algorithm to sort an array.
实现算法分类一个阵列。
These are important questions to ask because the most efficient and optimal way to sort an array of Numbers depends on understanding the answers.
这些都是该问的重要问题,因为一组数字的效率最高和最优的排序方式依赖于对这些答案的理解。
How to sort a large text file's data into a multi-dimensional array?
如何将一个大的文本文件的数据转换成一个多维数组?
To sort an array there are lots of functions.
数组排序有很多功能。
With an array of characters and an array of storage, respectively, and the names of scores of students, and then sort sorting algorithm, and finally by the lower power output.
用一个数组和一个字符数组分别储存学生的分数和姓名,然后用排序算法进行排序,最后按降幂输出结果。
Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, white and blue.
给定一个包含红色、白色、蓝色这三个颜色对象的数组,对它们进行排序以使相同的颜色变成相邻的,其顺序是红色、白色、蓝色。
Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, white and blue.
给定一个包含红色、白色、蓝色这三个颜色对象的数组,对它们进行排序以使相同的颜色变成相邻的,其顺序是红色、白色、蓝色。
应用推荐