如此重複最多N-1趟冒泡便可實現排序。 算法實現:將一組數按從小到大排列可以. void BubbleSort( int s[ ],int n). {. int i,j,t;. for(i=0;i<n;i++).
確定! 回上一頁