... i++){ pos = i; for(j=i+1; j<n; j++){ // 找出最小值// if(strcmp(data[j],data[pos])<0) pos = j; } // 把最小值跟第i 個做交換 swap(&data[i], ...
確定! 回上一頁