摘要:
冒泡排序:void bublle_sort(int s[], int n){ int i, j, temp; for (i = 0; i = 0 && s[j] > temp; j--) { s[j+1] = s[j]; } s[j+1] = temp; }}选择排序:void select_sort(int s[], int n){ int i,j,min,temp; for (i = 0; i i && s[j] >= temp) j--; s[i] = s[... 阅读全文
posted @ 2014-03-20 10:31
↙公子ゞ小白
阅读(105)
评论(0)
推荐(0)