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

正文內(nèi)容

停車場管理系統(tǒng)及課程設(shè)計(jì)報(bào)告-wenkub.com

2025-07-31 09:21 本頁面
   

【正文】 amp。 cout車輛離開登記開始:endl。 }}void Leave(SeqStackCar *Enter,SeqStackCar *Temp,LinkQueueCar *W){ int room。 tnext=NULL。 } else //如果車位已滿,則??吭诒愕郎? { cout*********************************************************************endl。 coutendl車輛到達(dá)登記完畢!endl。 if(EntertopMAX)//如果車位未滿則進(jìn)停車場內(nèi) { Entertop++。 cout********************************************************************endl。 delete p。 D=p。 cout離開時間為: p:p。 cinpp。 return 1。 sstack[stop]=NULL。break。Temp,amp。Wait)。a=4) break。 cout 退出系統(tǒng)請按 4endl。 cout(*^__^*) !。 InitQueue(amp。 InitStack(amp。//車輛離開時函數(shù)聲明void List(SeqStackCar,LinkQueueCar)。//用隊(duì)列定義,構(gòu)造停車場外的等候便道void InitStack(SeqStackCar *)。}QueueNode。 int top。 Time reach。define MAX 2 //停車場車位數(shù)define price //每分鐘收取的費(fèi)用typedef struct time{ int hour。// 建立并且初始化用于停車場的堆棧Queue carqueue。e39。E39。 }char ch。OutCar(S,Q,a2,a1)。case 2:cout請輸入離開的車號endl。cout請輸入到達(dá)時間endl。int a1。amp。cout*****************************請按鍵選擇******************************endl。Q){ cout******************************選擇菜單*******************************endl。amp。 = 。tag3==false){ DeQueue(Q,tempqnode)。//用來暫時保存從通道出來的汽車if(tag1==trueamp。 }elsePush(tempstack ,temp)。tag3=true。CarNode temp。//建立并且初始化用于暫存出車時讓車的堆棧bool tag1=false。} if(!SearchInStack(S,a2)){ cout車號a2不在停車場內(nèi),輸入有誤endl。} }void OutCar(CarStack amp。 =a2。 =a1。EnQueue(Q,qnode)。//在通道時間不收費(fèi),所以不計(jì)時 =39。 }if(SearchInQueue(Q,a2)){ cout車號a2已經(jīng)存在于通道內(nèi),輸入有誤endl。}void InCar(CarStack amp。if(!IsQueueEmputy(Q))//如果隊(duì)列非空{(diào) QNode *p=next 。}if((*p).License ==a)tag=true。S,int a) { bool tag=false。}bool IsQueueEmputy(Queue amp。else return false。 =(* ).License 。} 。}bool Pop(CarStack amp。(* ).LeaveTime = 。car)//此函數(shù)用來入棧一個CarNode 節(jié)點(diǎn){ if( = ){ cout此棧已滿,不能壓入新的信息endl。 =leavetime。return true。 =pLicense 。}QNode *p=next 。}bool DeQueue(Queue amp。pnext =0。}pArriveTime = 。Q,QNode amp。} = 。}bool InitQueue(Queue amp。return false。//隊(duì)尾指針}Queue。// 記錄車牌號QNode *next。typedef struct QNode//隊(duì)列節(jié)點(diǎn)的定義{ char Condition 。typedef struct //棧的定義{ CarNode *base。//用來表示“到達(dá)”或者“離開”的狀態(tài), int ArriveTime。}二includeiostreamincludefstreamusing namespace std。(cmd!=39。(cmd!=39。(cmd!=39。(cmd!=39。(cmd!=39。(cmd!=39。(cmd!=39。 }while((cmd!=39。}char readmand() /*選擇函數(shù)*/{ char cmd。 printf(\n********************************************************************************)。 printf(GRADE: 2008.)。 printf(NAME: GAOHE.)。i++) printf(\1)。 clrscr()。 break。E39。getch()。 break。: Print(amp。road)。p39。temp,amp。 case 39。part,amp。 break。A39。part,amp。 /*讀取停車場狀況*/ clrscr()。 printf(Press any key to continue......)。 InitStack(amp。 SqStackCar part,temp。void initialization()。 getch()。 q=qnext。 printf(The )。) /*打印便道*/ { printf(The car in the road!\n)。 } printf(Press any key to continue...)。 printf( car number is: )。 Push(Temp,t)。239。c!=39。c!=39。 }while(c!=39。 printf(3. return.)。 printf(1. Print the road!)。c!=39。 p=(CarNode *)malloc(sizeof(CarNode))。 int count=1。 if(q==Waitrear) Waitrear=Waitfront。 scanf(%d:%d,amp。 printf(\nThe )。Waitfront!=Waitrear) /*車站中有空位,便道有車,車入站*/ { q=(QueueNode *)malloc(sizeof(QueueNode))。 Push(In,p)。 } else Push(temp,t)。 flag=1。 money = ((a1a2+24)%24*60+(b1b2+60)%60)*price。 a1= p。p)。 Pop(In,t)。 flushall()。}/********************************************************************************/int Departure(SqStackCar *In,SqStackCar *temp,LinkQueueCar *Wait) /*車輛離開函數(shù)*/{ int flag=0,a1,a2,b1,b2, money。 printf(The PART is full,car must wait in the road!)。 wdata=i。 printf(\nCar in success!!)。 scanf(%d:%d,amp。 flushall()。 return 1。 e=pdata。 return 1。 pdata=e。 return 1。 else return 0。}int Pop(SqStackCar *s,CarNode *e) /*出站函數(shù)*/{ if(stop==sbase) return 0。 sstacksize=MAXSTACKSIZE。 else return 0。typedef struct {QueueNode *front。}SqStackCar。 }CarNode。}Time。總之,在這周的課程設(shè)計(jì)中,我以及我們這組的收獲還是挺大的,不僅對于專業(yè)課有了更好的認(rèn)識,而且在合作的過程中更加了解了團(tuán)隊(duì)精神的重要性。主要表現(xiàn)在車輛的車牌號上,現(xiàn)實(shí)中的車牌號是一串字符,可是,在這個程序中,為了簡便起見,我們就車牌號定義為了整型,這個與現(xiàn)實(shí)是有些不符的。在這次課程設(shè)計(jì)中,使得我很好地了解了在開發(fā)程序過程中合作的重要性。 default: break。W)。 } switch(tag) { case 1:List1(amp。 while(1) { scanf(%d,amp。 }void List(SeqStackCar S,LinkQueueCar W) { int flag,tag。 while(p!=NULL) { printf(%10d,pdatanum)。 } }else printf(\n\t\t\t車場里沒有車)。i++) { printf(%26d,i)。 if(Stop0) /*判斷車站內(nèi)是否有車*/ { printf(\n\t\t\t車場:)。 free(q)。(treachtime))。 Entertop++。/*判斷通道上是否有車及車站是否已滿*/ if((Whead!=Wrear)amp。 Enterstack[Entertop]=Tempstack[Temptop]。 } p=Enterstack[Entertop]。 } while(Entertoproom) /*車輛離開*/ { Temptop++。room)。 QueueNode *q。 Wrear=t。 t=(QueueNode *)malloc(sizeof(QueueNode))。 Enterstack[Entertop]=p。 printf(\n\t\t\t該車輛在停車場的位置是: %d\n,Entertop)。 printf(\t\t\t請輸入到達(dá)車輛車牌號: )。 } int Arrival(SeqStackCar *Enter,LinkQueueCar *W) /*車輛到達(dá)*/ { CarNode *p。 A1=preachtime。(pleavetime))。} else return(1)。} int InitQueue(LinkQueueCar *Q) /*初始化便道*/ { Qhead=(QueueNode *)malloc(sizeof(QueueNode))。 stop=0。 break。Temp,amp。Wait)。ch=4)break。ch)。 printf(\n\n\t\t\t3. 車輛信息 請選擇 3)。Wait)。Enter)。 int ch。n
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1