搜索资源列表
5
- 编写一个程序求一组整数的中值.如果这组数的个数为奇数,那么 //* 中值就是排序后的中间那个数 如果这组数的个数为偶数,那么中 //* 值就是平排序后的中间两个数的平均值(也是这组数的平均值). //* 编写一个函数接受如下两个参数: //* (1)整形数组 //* (2)代表该数组元素个数的一个整数 //* 该函数应当返回数组的中值.-To prepare a program for a group of integer valu
b
- 在程序中输入数组大小n,通过动态分配内存函数malloc产生一个整型数组,接着输入该数组的n个元数,并使用一个函数对组数进行排序(从小到大,要求用选择法实现)-In the procedure input array size n, through dynamic allocation of memory function malloc generate an integer array, and then enter the array of n-ary number, and use a f
Application
- 编写Application和Applet程序,实现:将上学期所学的各门课程的名称及考试成绩的信息用数组存放,并在for(或while)循环中利用排序算法,将成绩进行升(或降)序排列,最后输出排序后的课程成绩。-Application and Applet preparation procedures, achieve: The last semester of study by the name of the course and examination results with an arr
code1
- 键盘任意输入一组字母或数字生成无序数组,对数组按ASCII顺序进行排序(排序要求至少用两种排序算法),再从键盘输入一个值进行二分查找,返回查找成功或者失败的信息-Keyboard input and a group of letters, or any number of arrays, and generate disordered array sort order according to the ASCII at least two requirements (sort of), sor
bianchengmaopao
- 冒泡排序编程实现如下: #include <stdio.h> #define LEN 10 //数组长度 -Bubble Sort programming as follows:# include <stdio.h># Define LEN 10// array length
cPP
- a) 使用指针数组对输入三个整数数列(每个序列5个整数),利用指针对三个数进行排序-a) the use of an array of pointers to input three integer columns (each sequence of five integers) using means for three sort
maopao
- 冒泡排序,对数组中的数据进行从小到大排序-Bubble sort array data in ascending order
sort
- 用选择法对数组中10个整数按由小到大排序-10 integer array in ascending sort of choice of law
merge-sort
- merge sort. sorting elemnts of an array using merge sort algorithm