摘要:
1 #include <stdio.h> 2 3 void swap(int *ele1, int *ele2) 4 { 5 int temp = *ele1; 6 *ele1 = *ele2 ; 7 *ele2 = temp ; 8 } 9 void bubbleSort(int *array, int size, int (*func)(int a, int b))10 {11 12 int j,m;13 for (m=1;m<size;m++)14 {15 ... 阅读全文