2018年12月11日

2 Select Sort

摘要: #include void PrintArray(int *a, int len); int SelectSort(int *a, int len); int HeapSort(int *a, int len, int d); #define LENGTH 10 int array[LENGTH] = {4, 1, 5, 7, 9, 8, 6, 0, 3, 2}; //int array[... 阅读全文

posted @ 2018-12-11 19:38 altc 阅读(110) 评论(0) 推荐(0)

1Insert Sort

摘要: int InsertSort(int *a, int len) { int i; for(i = 1; i = 0)&&(a[j] > temp)) { a[j+1] = a[j]; j--; } a[j+1] = temp; } } int ShellSort(int... 阅读全文

posted @ 2018-12-11 19:35 altc 阅读(95) 评论(0) 推荐(0)

导航