span style="font-size:18px;">/*
04.*檔名稱:
06.*完成日期:2014.11.
07.*版 本 號:v1.0
08.*問題描述:陣列的排序
09.*輸入描述:一組數
10.*程式輸出:按照降序排列的數
11.*/
12.#include 13.
14.using namespace std;
15.void bubble_sort(int a,int x);
16.void output_array(int a,int x);
17.int main()
18.;
20. int b[15]= ;
21. cout<<"降序排列a中元素"<22. bubble_sort(a,20);
23. output_array(a,20);
24. cout<25. bubble_sort(b,20);
26. output_array(b,20);
27. return 0;
28.}
29.void output_array(int a,int x)
30.
34.
35.void bubble_sort(int a,int x)
36.
48. }
49. }
50.}
總結:需要了解一些數學常識和清晰點的思維
第十三周 專案4 (1)
檔名稱 grade.cpp 作 者 劉天恩 完成日期 2014年11月23日 版 本 號 v1.0 問題描述 用冒泡法按降序排序a中元素,輸出排序後的陣列.用冒泡法按降序排序b中元素,輸出排序後的陣列.程式輸入 無 程式輸出 輸出按降序排序後a,b陣列中的元素 includeusing namesp...
第十三周專案4 (1)氣泡排序
問題及 檔名稱 test.cpp 完成日期 2014年 11 月 24 日 版本號 v1.0 問題描述 氣泡排序問題 程式輸出 有序輸出 includeusing namespace std void bubble sort int sor,int num void output array int...
第十三周 專案四 陣列的排序(1 1)
問題及 檔名稱 project4.cpp 作 者 李楠 完成日期 2014年11月20日 版 本 號 v1.0 問題描述 編寫程式,完成氣泡排序 輸入描述 略 程式輸出 略 include include using namespace std void bubble sort int p,int ...