摘要:
完整代码:View Code 1 #include<stdio.h> 2 #include<malloc.h> 3 #define SORT_NUM_COUNT 50 4 enum result{success,fail}; 5 //构造整型数组,并返回 6 int* createArray(char *filePath); 7 //对整型数组的内容合并排序 8 result heapSort(int *heapArray); 9 //使用自底向上算法,从给定数组的元素中构造一个堆 10 result heapBottom(int *heapArray,int n); 阅读全文
posted @ 2012-10-31 00:34
Dann
阅读(358)
评论(0)
推荐(0)
浙公网安备 33010602011771号