摘要: 练习了一下冒泡排序 1 //冒泡排序 2 #include 3 void bubbleSort01(int *array, int length) 4 { 5 int i, j, temp; 6 for(i = length - 1; i > 0 ; i--) 7 { 8 for(j = 0; j array[j+1])11 {12 temp = array[j];13 array[j] = array[j+1];14 array[... 阅读全文
posted @ 2013-10-16 17:00 mic_yx 阅读(161) 评论(0) 推荐(0)