資源簡介
C++語言程序設計上機實驗課(所有實驗題目+全部完整代碼)

代碼片段和文件信息
#include?
#include?
#include?
using?namespace?std;
int?main()?{
int?next?current?=?0?numbers?temp?time?=?0;
int?counter?=?0;
int?values[20]?=?{?0?};
string?text[20][51];
while?(cin?>>?numbers?&&?numbers?!=?0)?{
time?=?0;
current?=?0;
stringstream?sStream;
for?(int?i?=?0;?i? cin?>>?next;
temp?=?next?-?current;
if?(temp?>?0)?{
time?+=?temp?*?6?+?5;
sStream?<“6?*?“?< }?else?{
time?+=?(-temp)?*?4?+?5;
sStream?<“4?*?“?<-temp?<“?+?5“;
}
current?=?next;
text[counter][i].append(sStream.str());
sStream.str(““);
}
values[counter]?=?time;
counter++;
}
for?(int?i?=?0;?i? cout?< for?(int?j?=?0;?j?50;?j++)?{
cout?< if?(!?text[i][j?+?1].empty())
cout?<“?+?“;
}
cout?<“)“?< }
return?0;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2019-05-25?22:15??01_實驗題目\
?????文件??????239824??2019-05-25?22:15??01_實驗題目\實驗1?熟悉Visual?C??開發環境.pdf
?????文件??????221949??2019-05-25?22:15??01_實驗題目\實驗10多態:函數模板.pdf
?????文件??????239832??2019-05-25?22:15??01_實驗題目\實驗11?文件操作和異常.pdf
?????文件??????310247??2019-05-25?22:15??01_實驗題目\實驗2?控制結構和函數.pdf
?????文件??????305041??2019-05-25?22:15??01_實驗題目\實驗3?面向對象初步.pdf
?????文件??????365253??2019-05-25?22:15??01_實驗題目\實驗4?對象作為類的成員.pdf
?????文件??????474283??2019-05-25?22:15??01_實驗題目\實驗5?結構體和指針.pdf
?????文件??????292013??2019-05-25?22:15??01_實驗題目\實驗6?繼承與派生.pdf
?????文件??????297698??2019-05-25?22:15??01_實驗題目\實驗7?多態:運算符重載.pdf
?????文件??????430825??2019-05-25?22:15??01_實驗題目\實驗8?多態:虛函數.pdf
?????文件??????315991??2019-05-25?22:15??01_實驗題目\實驗9?多態:抽象類.pdf
?????目錄???????????0??2019-05-25?22:16??02_實驗原始代碼\
?????文件????????3384??2019-05-25?22:15??02_實驗原始代碼\Array.h
?????目錄???????????0??2019-05-25?22:16??02_實驗原始代碼\exp_1\
?????文件?????????948??2019-05-25?22:16??02_實驗原始代碼\exp_1\Elevator.cpp
?????文件????????1709??2019-05-25?22:16??02_實驗原始代碼\exp_1\VedicStar.cpp
?????目錄???????????0??2019-05-25?22:16??02_實驗原始代碼\exp_2\
?????文件????????2225??2019-05-25?22:16??02_實驗原始代碼\exp_2\SliderGame.cpp
?????文件????????2492??2019-05-25?22:16??02_實驗原始代碼\exp_2\WeatherForecast.cpp
?????文件?????????146??2019-05-25?22:16??02_實驗原始代碼\exp_2\說明.txt
?????目錄???????????0??2019-05-25?22:16??02_實驗原始代碼\exp_3\
?????文件????????8118??2019-05-25?22:16??02_實驗原始代碼\exp_3\Date.cpp
?????文件?????????948??2019-05-25?22:16??02_實驗原始代碼\exp_3\Point.cpp
?????目錄???????????0??2019-05-25?22:16??02_實驗原始代碼\exp_4\
?????文件?????????467??2019-05-25?22:16??02_實驗原始代碼\exp_4\CD.cpp
?????文件?????????267??2019-05-25?22:16??02_實驗原始代碼\exp_4\CD.h
?????文件????????2174??2019-05-25?22:16??02_實驗原始代碼\exp_4\CDPla
?????文件?????????814??2019-05-25?22:16??02_實驗原始代碼\exp_4\CDPla
?????文件????????4714??2019-05-25?22:16??02_實驗原始代碼\exp_4\Date.cpp
?????文件????????1640??2019-05-25?22:16??02_實驗原始代碼\exp_4\Date.h
............此處省略60個文件信息
- 上一篇:C語言代碼夜夜愛消除
- 下一篇:基于MFC的FTP客戶端demo
評論
共有 條評論