### 冒泡排序 ```c #include void bubblingSort(int *a, int n, int flag){ int i, j, t; for(i=0;i0?a[j]>a[j+1]:a[j] void selectSort(int *a, int n, int flag){ int i, j, t; for(i=0;i 0?a[i] > a[j]:a[i] < a[j]){ t = a[i]; a[i] = a[j]; a[j] = t; } } } } void printArray(int *a, int n){ int i; for(i=0;i