close






這支程式要怎麼寫壓!!! 幫幫我!!



立即點擊

請使用陣列設計一個7個數字的選擇排序程式(由大到小)7個數字排列如下:44279163128553程式先顯示原陣列第二行91274463128553第三行91854463122753一直到排好就停止程式執行



#include #include void showArray(int *arr, int n); void select(int *arr, int n);int main(void) { int arr[] = { 44, 27, 91, 63, 12, 85, 53 }, N; N = sizeof(arr) / sizeof(*arr)--; showArray(arr, N); select(arr, N); system("pause"); return 0; } void showArray(int *arr, int N) { int i; for (i=0; i


選擇排序是Selectionsort.......quicksort阿你直接上Google打quicksort因該就有範例了

以上文章來自奇摩知識家,如有侵犯請留言告知

https://tw.answers.yahoo.com/question/index?qid=20101223000016KK02591

245997C2E1740D04

arrow
arrow
    文章標籤
    第三 程式 設計 第二
    全站熱搜
    創作者介紹
    創作者 中了千萬元 的頭像
    中了千萬元

    花10元買份報紙 中了千萬元

    中了千萬元 發表在 痞客邦 留言(0) 人氣()