12 2018 档案

2 SwapSort
摘要:int BubbleSort(int *a, int len) { int i; for(i = len-1; i > 0; i--) { int j; int flag = 0; for(j = 0; j a[j+1]) { flag = 1; i... 阅读全文

posted @ 2018-12-14 17:13 altc 阅读(101) 评论(0) 推荐(0)

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 阅读(112) 评论(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 阅读(99) 评论(0) 推荐(0)

gdb
摘要:1. $file xxx $info breakpoints $break file:line $break function $run $next $continue //next breakpoints $watch i $delete num $bt 阅读全文

posted @ 2018-12-05 18:14 altc 阅读(84) 评论(0) 推荐(0)

导航