資源簡介
數據結構課程設計(c++)排序算法的比較數據結構課程設計(c++)排序算法的比較數據結構課程設計(c++)排序算法的比較數據結構課程設計(c++)排序算法的比較數據結構課程設計(c++)排序算法的比較

代碼片段和文件信息
#include?
#include??????????????????????????????
#include?“arraysort.h“???????????????????????????
void?random(int?table[]?int?n)??????????????????
{
????int?i=0;?
????while?(i ????{
????????int?value?=?rand()?%?100;???????????????
????????if?(value!=0)?
????????????table[i++]?=?value;
????}
}
?
int?main()?
{
????const?int?N=9;
???
????int?table[]={3826971966154922};
int?table1[]={3826971966154922};
int?table2[]={3826971966154922};
int?table3[]={3826971966154922};
int?table4[]={3826971966154922};
int?table5[]={3826971966154922};
int?table6[]={3826971966154922};
????cout<<“關鍵字序列:“;
????print(table?N);
?????insertSort(table?N);??????????????????????
?????shellSort(table1?N);
?????bubbleSort(table2?N);
?????quickSort(table3?N);
?selectSort(table4?N);
?????heapSort(table5?N);
//?heapSort(table6?N);
????return?0;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????5438??2010-06-29?15:00??sort\arraysort.h
?????文件?????209009??2010-06-29?15:00??sort\Debug\sort.exe
?????文件?????262696??2010-06-29?15:00??sort\Debug\sort.ilk
?????文件??????23121??2010-06-29?15:00??sort\Debug\sort.obj
????I.A....????321756??2010-06-29?15:00??sort\Debug\sort.pch
?????文件?????508928??2010-06-29?15:00??sort\Debug\sort.pdb
?????文件??????50176??2010-06-29?15:00??sort\Debug\vc60.idb
?????文件??????61440??2010-06-29?15:00??sort\Debug\vc60.pdb
?????文件????????968??2010-06-29?14:59??sort\sort.cpp
?????文件???????4324??2010-06-29?15:04??sort\sort.dsp
?????文件????????533??2010-06-29?14:03??sort\sort.dsw
?????文件??????33792??2010-06-29?15:04??sort\sort.ncb
?????文件??????48640??2010-06-29?15:04??sort\sort.opt
?????文件???????1326??2010-06-29?15:00??sort\sort.plg
?????目錄??????????0??2010-06-29?15:00??sort\Debug
?????目錄??????????0??2010-06-29?15:04??sort
-----------?---------??----------?-----??----
??????????????1532147????????????????????16
- 上一篇:數據結構課程設計c++圖書管理系統源碼
- 下一篇:動態內存分配模擬.cpp
評論
共有 條評論