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

正文內(nèi)容

停車場(chǎng)管理系統(tǒng)設(shè)計(jì)報(bào)告-資料下載頁(yè)

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

【正文】 nextleave_hour=00。 p0nextleave_min=00。 return(head)。} else { int m=1。 while(p1state!=nocar amp。amp。 p1next!=NULL) //車位不為空,并且后面還有車位 { m=m+1。 //車位號(hào)加1 p1=p1next。 //p1指向下一個(gè)車位 }if(p1state==nocar) //找到空位,停車 { p1set=m。 p0set=p1set。 p1num=p0num。 p1state=havecar。 p1reach_hour=p0reach_hour。 p1reach_min=p0reach_min。 p1leave_hour=00。 p1leave_min=00。 for(i=0。i3。i++) { p1reach_date[i]=p0reach_date[i]。 } coutendl 第p1set號(hào)車位是空的!endl。 //提示找到第幾號(hào)車位是空的 coutendl *********歡迎來(lái)到我們的停車場(chǎng),你的車位是第p1set號(hào)^_^*********endl。 } else coutendl車場(chǎng)已滿,沒(méi)有空位!endl。 //車場(chǎng)滿了給出提示 } return(head)。}Car *car_leave(Car *head) //取車函數(shù){ Car *p1。 string num。 int leave_hour,leave_min。 int A,B,price。 float free=0。coutendl*********************************************** endl 以下是取車的相關(guān)手續(xù)辦理,歡迎下次再來(lái) ^_^ endl*********************************************** endl。 if(head==NULL) //鏈表為空,給出提示車場(chǎng)是空的 { coutendl車場(chǎng)里沒(méi)有車!endl。 return(head)。 } p1=head。 coutendl請(qǐng)輸入你的車牌號(hào):。 //提示輸入要取走的車的車牌號(hào) cinnum。while(num!=p1numamp。amp。 p1next !=NULL) { p1=p1next。 } if(num==p1num) //找到車輛,辦理取車手續(xù) { coutendl請(qǐng)輸入離開(kāi)的時(shí)間:/** **/。 cinleave_hourleave_min。 coutendl離開(kāi)車的車牌號(hào)為 :p1numendl。 cout該車到達(dá)的日期為:。 for(i=0。i3。i++) coutp1reach_date[i] 。coutendlendl其到達(dá)時(shí)間為/**:**/ :p1reach_hour:p1reach_minendl。 coutendl收費(fèi)標(biāo)準(zhǔn):endl 貨車 7元/h,客車 5元/h,轎車 4元/h,其它 3元/h endl。coutendl 請(qǐng)輸入該車每小時(shí)的停車價(jià):。 cinprice。 A=(leave_hour)(p1reach_hour)。 B=(leave_min)(p1reach_min)。 if(B0 amp。amp。 B30) //計(jì)算停車費(fèi)用,不到半小時(shí)算半價(jià),超過(guò)半小時(shí)算全價(jià) { free=A*price。 } else if(B30 amp。amp。 B60) { A=A1。 free=A*price+1/*price。} else if(B0 amp。amp。 B30) { free=A*price+1/*price。 } else { A=A+1。 free=A*price。 }coutendl應(yīng)支付的費(fèi)用為 :freeendl。 //顯示出停車費(fèi)用 coutendl ^^ Good bye ^^ !!! endl。 p1leave_hour=leave_hour。 p1leave_min=leave_min。ofstream outfile(f:\\,ios::app)。 //,保存取走的車的相關(guān)信息 outfile到達(dá)日期 車牌號(hào) 車位 到達(dá)時(shí)間 離開(kāi)時(shí)間 endl。for(i=0。i3。i++){ outfilep1reach_date[i] 。 } outfilep1num p1set p1reach_hour:p1reach_min p1leave_hour:p1leave_minendlendl。 ()。 //關(guān)閉文件 p1state=nocar。 //清除記錄,將車位還原成初始狀態(tài) p1num=kong。 p1reach_hour=00。 p1reach_min=00。p1leave_hour=00。 p1leave_min=00。 for(i=0。i3。i++) p1reach_date[i]=**。 } else coutendl 車場(chǎng)里沒(méi)有這輛車! endl。//沒(méi)有找到要取走的車輛,給出提示 return(head)。}Car *search(Car *head) //根據(jù)車牌號(hào)查詢{ Car *p。 string num。 p=head。 coutendl請(qǐng)輸入你要找的車的車牌號(hào) :。 cinnum。 while(num!=pnum amp。amp。 pnext !=NULL){ p=pnext。 } if(num==pnum) //找到車輸出相關(guān)信息 { coutendl該車到達(dá)的日期為。 for(i=0。i3。i++) coutpreach_date[i] 。 coutendlendl該車停在車場(chǎng)第 pset 號(hào)車位endl。 coutendl到達(dá)時(shí)間為 :preach_hour:preach_minendl。 } else coutendl 車場(chǎng)里沒(méi)有這輛車! endl。 return(head)。}Car *find(Car *head) //根據(jù)車位查詢{ Car *p。 int set。 p=head。 coutendl 請(qǐng)輸入你要查看的車位號(hào) :。 cinset。 while(set!=pset amp。amp。 pnext!=NULL) { p=pnext。 } if(set==pset) //找到要查看的車位,輸出相關(guān)的全部信息 { coutendl該車位上的相關(guān)信息為 :endl。 coutendl 該車到達(dá)的日期為 :preach_date[0]年 preach_date[1]月preach_date[2]日endl。 coutendl 該車位的狀態(tài)為 :pstateendl。coutendl 停的車的車牌號(hào)為 :pnumendl。 coutendl 該車到達(dá)時(shí)間為 :preach_hour:preach_minendl。 coutendl 該車離開(kāi)的時(shí)間為 :pleave_hour:pleave_minendl。 } return(head)。}void print(Car *head) //輸出停車場(chǎng)的所有信息{ int n=0。 Car *p。 p=head。 coutendl 該車場(chǎng)所有信息如下:endl。 cout 到達(dá)日期 車位 狀態(tài) 車牌號(hào) 到達(dá)時(shí)間 離開(kāi)時(shí)間 endl。 while(nMAX) { n=n+1。 for(i=0。i3。i++) cout preach_date[i] 。 coutsetw(4)psetsetw(10)pstatesetw(10)pnum setw(10)preach_hour:preach_minsetw(10) pleave_hour:pleave_minendlendl。 p=pnext。 }if(getch()) return。}void printf(Car *head) //保存停車場(chǎng)信息{ int n=0。 Car *p。 p=head。 ofstream outfile(f:\\,ios::app)。 //,保存車場(chǎng)全部信息 while(nMAX) { n=n+1。 outfile到達(dá)日期 車牌號(hào) 車位 車位狀態(tài) 到達(dá)時(shí)間 離開(kāi)時(shí)間 endl。 for(i=0。i3。i++) outfilepreach_date[i] 。outfilesetw(2)pnumsetw(10)psetsetw(10)pstatesetw(9)preach_hour:preach_minsetw(9)pleave_hour:pleave_minendl。 p=pnext。 } ()。 if(getch()) return。}39
點(diǎn)擊復(fù)制文檔內(nèi)容
研究報(bào)告相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1