資源簡介
滿分實驗代碼與報告,報告某些加分項并沒有去拿,如畫程序流程圖(太費時間了),報告嚴格按照模板執行。
某些實驗僅有代碼沒有報告,因為這些實驗不要求交報告。
編譯環境為win10環境下的devc++,C++標準為C++11,編譯環境內需增加-std = c++11指令,另外需要采用64位模式編譯。
實驗0預備實驗安排
實驗1線性表的物理實現
實驗2 線性表的應用
實驗3 二叉樹的物理實現
實驗4 特殊二叉樹的應用
實驗5 圖的物理實現
實驗6圖的應用
實驗7查找
實驗8排序算法實驗比較
代碼片段和文件信息
#include
#include“AList.h“
using?namespace?std;
int?main(){
//Input?module
int?n?=?0?sale?=?0?count?=?0;
cin>>n; //Input?days
AList?dt(n); //Init?List
for(?int?i?=?0;?i? cin?>>?sale;
dt.append(sale);
}
//Process?module
int?length?=?dt.length();
if(?length?<=?2){
count?=?0;
}
else{
dt.moveToStart();
int?temp1?=?dt.getValue();
dt.next();
int?temp2?=?dt.getValue();
int?temp3?=?0;
//Use?three?days?as?a?unit
do{
dt.next();
temp3?=?dt.getValue();
if(?(temp2?>?temp1?&&?temp2?>?temp3)?||?(temp2? count++;
temp1?=?temp2;
temp2?=?temp3;
}while(?dt.currPos()? }
//Output?module
cout?<
system(“pause“);?
return?0;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2019-01-04?15:10??湖大數據結構2018\
?????文件??????279552??2018-09-25?13:28??湖大數據結構2018\2018秋實驗報告模板.doc
?????文件??????264192??2018-09-25?13:28??湖大數據結構2018\2018秋實驗指導書.doc
?????目錄???????????0??2019-01-04?15:03??湖大數據結構2018\實驗0\
?????目錄???????????0??2019-01-04?15:03??湖大數據結構2018\實驗0\實驗0-201508010418-李銘豪\
?????文件??????501137??2018-10-13?22:48??湖大數據結構2018\實驗0\實驗0-201508010418-李銘豪.zip
?????文件????????2255??2017-06-16?15:19??湖大數據結構2018\實驗0\實驗0-201508010418-李銘豪\AList.h
?????文件????????1151??2018-10-13?22:39??湖大數據結構2018\實驗0\實驗0-201508010418-李銘豪\exp0.dev
?????文件?????2003470??2018-10-13?21:59??湖大數據結構2018\實驗0\實驗0-201508010418-李銘豪\exp0.exe
?????文件?????????215??2018-10-13?22:39??湖大數據結構2018\實驗0\實驗0-201508010418-李銘豪\exp0.layout
?????文件????????1564??2017-06-15?21:25??湖大數據結構2018\實驗0\實驗0-201508010418-李銘豪\List.h
?????文件?????????833??2018-10-13?21:59??湖大數據結構2018\實驗0\實驗0-201508010418-李銘豪\main.cpp
?????文件???????85949??2018-10-13?21:59??湖大數據結構2018\實驗0\實驗0-201508010418-李銘豪\main.o
?????文件????????1062??2018-10-13?22:40??湖大數據結構2018\實驗0\實驗0-201508010418-李銘豪\Makefile.win
?????文件?????????301??2018-10-13?20:58??湖大數據結構2018\實驗0\實驗0-201508010418-李銘豪\說明文檔與樣例.txt
?????文件??????508416??2018-10-13?22:46??湖大數據結構2018\實驗0\最終報告0-201508010418-李銘豪.doc
?????文件??????390212??2018-10-13?22:47??湖大數據結構2018\實驗0\最終報告0-201508010418-李銘豪.pdf
?????目錄???????????0??2019-01-04?15:03??湖大數據結構2018\實驗1\
?????目錄???????????0??2019-01-04?15:03??湖大數據結構2018\實驗1\實驗1-鏈表-201508010418-李銘豪\
?????文件?????1027553??2018-10-18?15:45??湖大數據結構2018\實驗1\實驗1-鏈表-201508010418-李銘豪.zip
?????文件?????????984??2017-06-16?17:01??湖大數據結構2018\實驗1\實驗1-鏈表-201508010418-李銘豪\li
?????文件????????1564??2017-06-15?21:25??湖大數據結構2018\實驗1\實驗1-鏈表-201508010418-李銘豪\List.h
?????文件????????1247??2018-10-18?15:21??湖大數據結構2018\實驗1\實驗1-鏈表-201508010418-李銘豪\LList.dev
?????文件?????2110531??2018-10-18?15:23??湖大數據結構2018\實驗1\實驗1-鏈表-201508010418-李銘豪\LList.exe
?????文件????????2663??2017-06-16?15:09??湖大數據結構2018\實驗1\實驗1-鏈表-201508010418-李銘豪\LList.h
?????文件??????????95??2018-10-18?15:23??湖大數據結構2018\實驗1\實驗1-鏈表-201508010418-李銘豪\LList.layout
?????文件????????2608??2018-10-18?15:23??湖大數據結構2018\實驗1\實驗1-鏈表-201508010418-李銘豪\main.cpp
?????文件?????2111043??2018-10-18?15:40??湖大數據結構2018\實驗1\實驗1-鏈表-201508010418-李銘豪\main.exe
?????文件??????119184??2018-10-18?15:23??湖大數據結構2018\實驗1\實驗1-鏈表-201508010418-李銘豪\main.o
?????文件????????1064??2018-10-18?15:23??湖大數據結構2018\實驗1\實驗1-鏈表-201508010418-李銘豪\Makefile.win
?????文件????????1583??2018-10-18?15:43??湖大數據結構2018\實驗1\實驗1-鏈表-201508010418-李銘豪\說明文檔與樣例.txt
............此處省略168個文件信息
評論
共有 條評論