搜索资源列表
lwork
- 一个学生成绩编辑程序,本程序设计优缺点: 采用数组实现各项功能,简洁易懂,便于操作。功能包括: 1. 建立文件:能建立多个文件保存不同数据;载入:可从现有任意文件中载入数据;保存:可将输入的数据保存到现有文件中,建议新建文件,否则会覆盖原文件中数据。 2. 增加或删除学生数据,按学号查学生姓名、成绩(包括平均成绩),求总平均成绩和各科平均成绩。 3. 有各种排序功能:按学号排序、平均成绩排序、某门课成绩排序。 4. 不及格类统计:统计考试有不及格的学生、指定课程有不及格的学生
paixuchazhao
- 掌握在数组上进行排序和查找的方法和算法 理解方法特点,并能灵活运用 加深对排序和查找方法的理解,逐步培养解决实际问题的编程能力 -In the hands of the array on the method to sort and find methods and algorithms to understand the characteristics and flexibility in the use of better understanding of the sort an
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 ◎ _ ◎
as
- 本程序首先对数组a中的10个数从大到小排序并输出排序结果。然后输入要插入的整数n。再用一个for语句把n和数组元素逐个比较,如果发现有n>a[i]时,则由一个内循环把i以下各元素值顺次后移一个单元。后移应从后向前进行(从a[9]开始到a[i]为止)。后移结束跳出外循环。插入点为i,把n赋予a[i]即可。 如所有的元素均大于被插入数,则并未进行过后移工作。此时i=10,结果是把n赋于a[10]。最后一个循环输出插入数后的数组各元素值。 -This procedure first arra
ag
- 这个双重循环完成按字母顺序排序的工作。在外层循环中把字符数组cs[i]中的国名字符串拷贝到数组st中,并把下标i赋予P。进入内层循环后,把st与cs[i]以后的各字符串作比较,若有比st小者则把该字符串拷贝到st中,并把其下标赋予p。内循环完成后如p不等于i说明有比cs[i]更小的字符串出现,因此交换cs[i]和st的内容。至此已确定了数组cs的第i号元素的排序值。然后输出该字符串。在外循环全部完成之后即完成全部排序和输出。-The double circle in alphabetical o
xuanze
- 本程序通过选择排序算法的特点,实现数组的选择排序.. 大家进行参考. -This procedure by selecting the characteristics of sorting algorithm, the realization of the choice of array to sort. . We conduct reference.
sort
- 用非递归的算法对一组 数组进行排序,算法比较简单-Non-recursive algorithm to sort a set of array
ShellSort
- Shell sort is a sorting algorithm, devised by Donald Shell in 1959, that is a generalization of insertion sort, which exploits the fact that insertion sort works efficiently on input that is already almost sorted. It improves on insertion sort by all
PaPi_2
- selection sort on an array of objects
RandomAndSort
- 结合数组、排序及TeeChart绘图来实现大量随机数的排序-Associative array, sorting and TeeChart drawing a large number of random numbers to achieve the sort
1
- 先采用选择法,将学生成绩从高到低进行排序,再输入一个学生的成绩,将此成绩按照排序规律插入已排好序的学生成绩数组,最后将排好序的成绩单进行反序存放。-First selection method, the student scores high to low sort, and then enter a student s grades, this insert the sorted array of student achievement results sorted according to
Function-template
- 利用显示数组的排序函数模板,处理double类型,和char类型数据-Display an array sort function template to deal with the data of type double, and char types
mergesort
- 用mergesort给array排序,所用到的各种函数,有recursive mergesort 也有iterative mergesort,两种不同的思想,都能完成mergesort-to sort an array use mergesort idea
Array-sort
- 数组排序:有一个已经排好序的数组。现输入一个数,要求按原来的规律将它插入数组中。-Sort the array: a sorted array. Now enter a number of requirements of the original law, it is inserted into the array.
13-479-11-2
- 结构数组排序:将数组内元素按大小排序,并打印-Sort of structure array: sort the elements by size, and print
Bubble-sort-method
- 冒泡排序法,根据数组的冒泡排序法,比较两个字符串的大小,再交换字符串。-Bubble sort, bubble sort method based on the array, compare two strings size, then swap strings.
C2
- 1) 定义一个数组stu[10]存放10个学生的成绩,从键盘输入数据,要求用指针实现 2) 将数组stu[10]的内容输出到屏幕上,要求用指针实现 3) 将成绩数组按照从高到低进行排序,要求用指针实现 4) 将第三步内容放在函数中实现,在主函数中调用实现排序,用指针实现,输出排序后的成绩单 5) 采用指针方法,输入字符串“student score ”,复制该字符串并输出(复制字符串采用库函数或用户自定义函数)-1) define an array stu [10] to sto
Sorting-an-array
- 实现控制台下对一个数组进行排序,分为用sort函数进行排序和自己编程进行排序。-Realize the console next to sort an array, sort and into their own programming with sort function to sort.
Sort-2
- Sort elements in array (Quick Sort)
sort
- This program uses a character array of three chars. It calls Array.Sort on the char array reference. And the array elements are reordered.