freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

停車(chē)場(chǎng)管理系統(tǒng)設(shè)計(jì)報(bào)告(參考版)

2025-07-26 08:07本頁(yè)面
  

【正文】 if(getch()) return。 p=pnext。i++) outfilepreach_date[i] 。 for(i=0。 //,保存車(chē)場(chǎng)全部信息 while(nMAX) { n=n+1。 p=head。}void printf(Car *head) //保存停車(chē)場(chǎng)信息{ int n=0。 p=pnext。i++) cout preach_date[i] 。 for(i=0。 cout 到達(dá)日期 車(chē)位 狀態(tài) 車(chē)牌號(hào) 到達(dá)時(shí)間 離開(kāi)時(shí)間 endl。 p=head。}void print(Car *head) //輸出停車(chē)場(chǎng)的所有信息{ int n=0。 coutendl 該車(chē)離開(kāi)的時(shí)間為 :pleave_hour:pleave_minendl。coutendl 停的車(chē)的車(chē)牌號(hào)為 :pnumendl。 coutendl 該車(chē)到達(dá)的日期為 :preach_date[0]年 preach_date[1]月preach_date[2]日endl。 pnext!=NULL) { p=pnext。 while(set!=pset amp。 coutendl 請(qǐng)輸入你要查看的車(chē)位號(hào) :。 int set。 return(head)。 coutendl到達(dá)時(shí)間為 :preach_hour:preach_minendl。i++) coutpreach_date[i] 。 for(i=0。 pnext !=NULL){ p=pnext。 while(num!=pnum amp。 coutendl請(qǐng)輸入你要找的車(chē)的車(chē)牌號(hào) :。 string num。//沒(méi)有找到要取走的車(chē)輛,給出提示 return(head)。i++) p1reach_date[i]=**。 for(i=0。p1leave_hour=00。 p1reach_hour=00。 //關(guān)閉文件 p1state=nocar。 } outfilep1num p1set p1reach_hour:p1reach_min p1leave_hour:p1leave_minendlendl。i3。 //,保存取走的車(chē)的相關(guān)信息 outfile到達(dá)日期 車(chē)牌號(hào) 車(chē)位 到達(dá)時(shí)間 離開(kāi)時(shí)間 endl。 p1leave_min=leave_min。 //顯示出停車(chē)費(fèi)用 coutendl ^^ Good bye ^^ !!! endl。 free=A*price。 B30) { free=A*price+1/*price。} else if(B0 amp。 B60) { A=A1。 } else if(B30 amp。amp。 B=(leave_min)(p1reach_min)。 cinprice。 coutendl收費(fèi)標(biāo)準(zhǔn):endl 貨車(chē) 7元/h,客車(chē) 5元/h,轎車(chē) 4元/h,其它 3元/h endl。i++) coutp1reach_date[i] 。 for(i=0。 coutendl離開(kāi)車(chē)的車(chē)牌號(hào)為 :p1numendl。 } if(num==p1num) //找到車(chē)輛,辦理取車(chē)手續(xù) { coutendl請(qǐng)輸入離開(kāi)的時(shí)間:/** **/。amp。 //提示輸入要取走的車(chē)的車(chē)牌號(hào) cinnum。 } p1=head。 if(head==NULL) //鏈表為空,給出提示車(chē)場(chǎng)是空的 { coutendl車(chē)場(chǎng)里沒(méi)有車(chē)!endl。 float free=0。 int leave_hour,leave_min。}Car *car_leave(Car *head) //取車(chē)函數(shù){ Car *p1。 } else coutendl車(chē)場(chǎng)已滿,沒(méi)有空位!endl。 } coutendl 第p1set號(hào)車(chē)位是空的!endl。i3。 p1leave_min=00。 p1reach_min=p0reach_min。 p1state=havecar。 p0set=p1set。 //車(chē)位號(hào)加1 p1=p1next。amp。} else { int m=1。 p0nextleave_min=00。 p0nextreach_min=00。 p0nextset=2。 p0nextstate=nocar。 p0nextreach_date[0]=****。 p0leave_hour=00。if(head==NULL) //鏈表為空,車(chē)停在第一號(hào)車(chē)位{ p0set=1。 coutendl 請(qǐng)輸入到達(dá)時(shí)間/** **/ :。coutendl 請(qǐng)輸入車(chē)牌號(hào)(例如:chuanM2266):。i3。 coutendl 請(qǐng)輸入車(chē)到達(dá)的日期(**** ** **):。p0=new Car。}Car *car_park(Car *head) //停車(chē)函數(shù){ Car *p0,*p1。 if(n==MAX) coutendl該車(chē)場(chǎng)已全部初始化!!!endl。 cout車(chē)離開(kāi)的時(shí)間/**:**/ :00:00endlendl。 cout車(chē)停在車(chē)場(chǎng)的位置為第set號(hào)endl。 cout請(qǐng)輸入車(chē)牌號(hào)(例如:shanA1234):kongendl。 p1=new Car。 else p2next=p1。 p1leave_min=00。 //初始化所有時(shí)間為00 p1reach_min=00。 p1state=nocar。 p1num=kong。 p1reach_date[0]=****。 while(nMAX) { n=n+1。 cinp1leave_hourp1leave_min。 cinp1reach_hourp1reach_min。 cinp1set。 cinp1state。 cinp1num。i++)cinp1reach_date[i]。 for(i=0。 p1=p2=new Car。 int n=0。}Car *car_creat() //初始化停車(chē)場(chǎng){ Car *head。break。 default:cout輸入錯(cuò)誤!請(qǐng)重新選擇!endl。break。printf(head)。break。print(head)。break。head=find(head)。 break。head=search(head)。break。head=car_leave(head)。break。head=car_park(head)。break。head=car_creat()。c=getch()。 coutendl************************************************ endl ^^ Wele to our bus station ! ^^ endl************************************************ endl。 char c。 //輸出函數(shù) void printf(Car *)。 //按車(chē)牌號(hào)查詢函數(shù) Car *find(Car *)。 //停車(chē)函數(shù) Car *car_leave(Car *)。int main() //主函數(shù){ Car *car_creat()。}。 //離開(kāi)時(shí)的分鐘點(diǎn) string reach_date[3]。 //到達(dá)時(shí)的分鐘點(diǎn) int leave_hour。 //停車(chē)車(chē)位 int reach_hour。 //車(chē)牌號(hào) string state。最后,對(duì)給過(guò)我們幫助的所有同學(xué)和指導(dǎo)老師再次表示忠心的感謝!附錄1:參考文獻(xiàn)1.《C++程序設(shè)計(jì)》作者:譚浩強(qiáng)出版社:清華大學(xué)出版社參考內(nèi)容:第四章 函數(shù)與預(yù)處理(94109)第七章 自定義數(shù)據(jù)類(lèi)型(201217)第十三章 輸入輸出流 (439441) 2.《C++程序設(shè)計(jì)題解與上機(jī)指導(dǎo)》 作者:譚浩強(qiáng) 出版社:清華大學(xué)出版社 參考內(nèi)容:第七章 自定義數(shù)據(jù)類(lèi)型(121126) 附錄2 程序清單includeiostreamincludefstreamincludeiomanipincludestringincludeincludeusing namespace std。中間遇到不少問(wèn)題,但是在自己的努力和老師同學(xué)的幫助下,全都迎刃而解了。這次設(shè)計(jì),進(jìn)一步加深了我對(duì)結(jié)構(gòu)體和鏈表的理解和運(yùn)用。通過(guò)這次課程設(shè)計(jì)使我懂得了只有理論知識(shí)是遠(yuǎn)遠(yuǎn)不夠的,只有把所學(xué)的理論知識(shí)與實(shí)踐相結(jié)合起來(lái),從理論中得出結(jié)論,才能真正提高自己的實(shí)際動(dòng)手能力和獨(dú)立思考的能力。 第五章 課程設(shè)計(jì)心得與體會(huì)課程設(shè)計(jì)是培養(yǎng)學(xué)生綜合運(yùn)用所學(xué)知識(shí),發(fā)現(xiàn)、提出、分析和解決實(shí)際
點(diǎn)擊復(fù)制文檔內(nèi)容
研究報(bào)告相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1