搜索资源列表
数组排序算法改进版
- 这个程序的头文件中包含四种排序方法:泡沫排序法(bubble),插入排序法(insertion),快速排序法(quick)和选择排序法(selection)。头文件中还使用了模板技术,以便可以同时实现几种类型的排序算法。 dinimicky_hu对原程序做了修改和优化,使用了函数指针数组,并修改了一个BUG-The head file of this programme includes 4 methods of sorting : Bublle sorting,insertion sortin
200611373551757_600it
- 哈夫曼编码原程序 * huffman_e 在huffman_d的基础上,将索引数组放在tree的内部。为编码方便,将元素权值放在tree[num..2*num-1]处。将tree[0..num-1]作为索引数组。排序改为从大到小。对索引数组排序后,每次从最后选出2个最小值,相加后的结点权值放在索引数组最后,结点索引放在索引数组中倒数第2个位置,然后索引数组大小减1,并将最后一个索引值插入到前面的有序表中,保证索引数组仍然有序。 * huffman_f 在huffman_e的基
sort
- 实体对象的数组排序代码.使用Comparator类来构造
qarray_demo
- c++中自定义结构的动态数组源码,支持排序.给了动态数组模板类,以及排序的模板函数.-c++ customize dynamic array source to support the sort. to the dynamic array template class, as well as the sort of template function.
paixu
- 随机产生100个0到999的整数存放于分别用于快速排序和堆排序的2个整型数组和一个用于链式基数排序的静态链表之中。为整数序列的输出定义一个输出函数。依据快速、堆和基数排序三种不同的算法分别编写函数程序。-Randomly generated 100 0-999 integer stored in a separate stack for rapid sequencing and sequencing of two integer array and a base for the chain so
arr
- arraylist 一维数组排序-One-dimensional array sort
line2
- 数组排序并计算程序运行时间,以C++为运行工具,使读者理解c++中时间函数的使用-Sort the array and calculate the running time
initialize
- 偶用c#做的,内含8个实验(计算日期,计算税收,数组排序,电费计算程序 等等)启动界面,登录时间,淡入淡出◎_◎-Even to do with c# and containing eight experiments (calculation date, calculate taxes, array sort, electricity and so on program) to start the interface, log in time, fade ◎ _ ◎
score_static
- 用一个数组和一个字符数组分别储存学生的分数和姓名,然后用排序算法进行排序,最后按降幂输出结果。 -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.
ConsoleApplication1
- c#排序算法用类Icomparable实现数组排序!-c#排序算法用类Icomparable实现数组排序
z
- 实现数组的相关功能,如查询,求和,求平均值,求最大值最小值,排序,查找等,并且有菜单,适合靠C语言二级证书的,或者初学者-To achieve an array of related functions, such as query, sum, average, seeking maximum minimum, sort, search and so on, and there are menus for relying on C-2 certificates, or beginners
7-2
- (1)分别采用结构体数组和链表存储学生信息(包括学号、姓名、各科成绩) (2)通过键盘输入各学生的多门课程的成绩,建立相应的文件input.dat。 (3)按各科总成绩排序,并生成相应的文件输出。 (4)计算每人的平均成绩,按平均成绩排序,并生成文件。 (5)按学号、姓名查找学生记录。 -(1), respectively, and an array of linked list structures storing student information (includin
2D-array-sort
- 对2维数组中,指定的列进行排序。 可以对数值、字符进行排序。可以控制正序或倒序排序。 Labview v2010-On 2-dimensional array, specify the sort column. Can values, characters are sorted. Can control the positive sequence or reverse order. Labview v2010
shuzu
- 包括二维数组的运算,包括去最大、最小值,并且对最值的定位,对数组内的元素进行排序,对数组元素的加减乘除运算等操作
房产销售工人信息管理系统
- 利用C语言(数组)实现房产销售工人信息管理系统 【1】查找工人信息 【2】插入新工人信息 【3】删除工人信息 【4】工资合计 【5】统计 【6】按销售套数排序(Using C language (array) to achieve real estate sales workers informati
新建 WinRAR 压缩文件
- 该程序是分别使用快速排序、插入排序、选择排序、冒泡排序、堆排序、归并排序、基数排序制作的,可以选择其一实现数组排序,通过主函数调用实现七种算法的演示。当输入一个数组的元素个数和数组元素之后可以选择七种排序方法之一进行排序并按从小到大的顺序输出。(The program is using fast sorting, insert sort, select sort, bubble sort, heap sort, merge sort, radix sort production, you can
排序递归算法
- 数组做函数参数的退回问题 退回为一个指针, 1 正确做法:把数组的内存首地址和数组的有效长度传给被调用函数 2 //实参的a 和 形参的a 的数据类型本质不一样形参中的数组 ,编译器会把它当成指针处理 这是C语言的特色排序 本质也剖析 3 形参写在函数上,和写在函数内是一样的,只不过是具有对外的属性而已.(The return problem of the array as a function parameter is returned to a pointer, 1 corre
数组去重排序
- 数组去掉重复数据再从小到大排序,是普通排序(An array is a common sort by removing repeated data from small to large.)
数组排序和计算练习
- 编写一个控制台程序,输入五个数求和,最大值,平均数,平均值小数点后一位(Write a console program, enter five numbers of summation, maximum, mean, average, one after the decimal.)
排序查找
- 排序与查找程序 实现如下步骤要求的功能: 1. 从键盘输入若干个非负整数,遇到-1 则结束输入,将这些数保存到一个足够大的 一维数组中,非负整数的个数保存到变量 n 里面。 2. 使用函数 print_array(int*a,int n)在屏幕上输出排序前的 n 个整数。 3. 使用选择排序函数 select_sort(int *a, int n)将输入的 n 个整数从大到小排序。 4. 使用函数 print_array(int *a, int n)输出排序后的 n 个整数。 5.