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

正文內容

停車場管理系統(tǒng)及課程設計報告-文庫吧資料

2024-08-16 09:21本頁面
  

【正文】 !\n)。if(c==39。339。amp。239。amp。139。 printf(\n)。 do{ printf(\nInput your choice:)。 gotoxy(1,12)。 gotoxy(1,11)。 gotoxy(1,10)。339。amp。 t=(CarNode *)malloc(sizeof(CarNode))。 q=(QueueNode *)malloc(sizeof(QueueNode))。 CarNode *p,*t。}/********************************************************************************/void Print(SqStackCar *In,SqStackCar *Temp,LinkQueueCar *Wait) /*打印函數*/{ int c=0。 free(q)。 } Waitfrontnext=qnext。t,amp。 printf(\nInput the time the car arrive(00:00): )。 printf(%s,tnum)。 if(q!=NULL) { Push(In,t)。 q=Waitfrontnext。amp。 } free(p)。 } while(!StackEmpty(*temp)) { Pop(temp,p)。 } /*while*/ if(!flag) { printf(No this car!!)。 break。 getch()。 printf(\nNeed: %d yuan,money)。 /*計算車輛需要的費用*/ printf(\nThe time the car arrive: %d:%d,t,t)。 b2= t。 a2= t。 printf( Car out the part!)。 printf(The )。p,amp。 if(strcmp(pnum,tnum)==0) /*比較車場中有無這輛車,有即出站*/ { printf(Input the time the car out(00:00):)。 while(!StackEmpty(*In)) { t=(CarNode *)malloc(sizeof(CarNode))。 printf(Input the out car number: )。 p=(CarNode *)malloc(sizeof(CarNode))。 CarNode *p,*t。 } return 0。 sleep(1)。 Waitrear=w。 wnext=NULL。 } else /*停車場已滿,車進便道*/ { w=(QueueNode *)malloc(sizeof(QueueNode))。 sleep(1)。 Push(In,i)。i,amp。 if(IntopInbaseMAXSTACKSIZE) /*車場未滿,車輛進棧*/ { printf(\nThe time the car arrive(00:00): )。 printf(Input the car number:)。 i=(CarNode *)malloc(sizeof(CarNode))。}/********************************************************************************/int Arrive(SqStackCar *In,LinkQueueCar *Wait) /*車輛到達函數*/{ CarNode *i。 free(p)。 Qfrontnext=pnext。 p=Qfrontnext。}int DeQueue(LinkQueueCar *Q,CarNode *e) /*便道刪除函數*/{ QueueNode *p。 Qrear=p。 pnext=NULL。 if(!p) exit(0)。} /**************************************************************/int EnQueue(LinkQueueCar *Q,CarNode *e) /*便道插入函數*/{ QueueNode *p。 Qfrontnext=NULL。}int InitQueue(LinkQueueCar *Q) /*初始化便道*/ { Qfront=Qrear=(QueueNode *)malloc(sizeof(QueueNode))。}int StackEmpty(SqStackCar s) /*判空函數*/{ if(==) return 1。 *e=*stop。 return 1。}int Push(SqStackCar *s,CarNode *e) /*進站函數*/{ if(stopsbase=sstacksize) return 0。/*分配失敗*/ stop=sbase。}/********************************************************************************/void InitStack(SqStackCar *s) /*初始化棧*/{ sbase=(CarNode *)malloc(MAXSTACKSIZE*sizeof(CarNode))。 /*模擬通道*/ int QueueEmpty(LinkQueueCar Q) /*便道判空函數*/{ if(==) return 1。QueueNode *rear。 }QueueNode。 /*模擬車站*/typedef struct car{ CarNode *data。int stacksize。 /*車輛信息結點*/typedef struct {CarNode *base。 Time leave。 /*時間結點*/ typedef struct {char num[10]。int min。主要參考資料[1] 譚浩強. C語言程序設計(第三版)[M]. 北京:清華大學出版社,2005[2] 廖雷、羅代忠. C語言程序設計基礎實驗教程[M]. 北京:高等教育出版社,2005[3] 譚浩強. C程序設計解題與上機指導(第三版) [M]. 北京:清華大學出版社,2005[4] 廖雷等. C語言程序設計基礎[M]. 北京:高等教育出版社,2004[5] 譚浩強,張基溫,唐永炎. C語言程序設計教程.還有一個很重要的問題,對于停車場內可以停放的最多車輛數,為了測試數據的方便,我在程序中,定為了2,在實際使用中,可以改變程度開頭的宏定義以增加停車場的容量。還有一個可以改進的地方就是記錄車輛進入停車場以及離開停車場的時間,應該精確到小時以及分鐘的,可是在程序中,為了簡便起見,我們只是設置成了一個時刻,所以,在這方面還是有待改進的。但是,該程序也有不足的地方。在這周課程設計中,我們小組所開發(fā)的停車場管理系統(tǒng),基本上可以完成每一項功能。在這次對停車場管理系統(tǒng)的開發(fā)過程中,我們小組成員互相合作,互相幫助,其中有程序功能成功實現(xiàn)時的欣喜,也有遇到問題、解決問題時的執(zhí)著以及迷茫。 } } }設計體會通過這一周的課程設計,加深了我對《數據結構》這門課程所學內容的進一步的理解與掌握;同時,通過對停車場管理系統(tǒng)的開發(fā),使得我將計算機課程所學知識與實際問題很好地相聯(lián)接在了一起。break。break。 /*列表顯示車場信息*/ case 2:List2(amp。S)。 else printf(\n\t\t\t請選擇 1|2|3:)。tag)。 printf(\n\n\t\t\\n\n\t\t\\n\n\t\t\\n\n\t\t\t)。 flag=1。 } else printf(\n\t\t\t便道里沒有車.)。 p=pnext。 if(Whead!=Wrear) /*判斷通道上是否有車*/ { printf(\n\t\t\t等待車輛的號碼為: )。 }void List2(LinkQueueCar *W) /*列表顯示便道信息*/ { QueueNode *p。 printf(\n)。 printf(%6d,Sstack[i]reachtime)。i=Stop。 printf(\n\n\t\t\t位置 到達時間 車牌號\n)。 /*沒車*/ }void List1(SeqStackCar *S) /*列表顯示車場信息*/ { int i。 } else printf(\n\n\t\t\t便道里沒有車.\n)。 Enterstack[Entertop]=t。 Wheadnext=qnext。 scanf(%d,amp。 printf(\n\n\t\t\t便道的%d號車進入車場第%d位置.,tnum,Entertop)。 t=qdata。amp。 } PRINT(p)。 Tempstack[Temptop]=NULL。 while(Temptop=1) { Entertop++。 Enterstack[Entertop]=NULL。 Entertop。 Tempstack[Temptop]=Enterstack[Entertop]。room=Entertop) break。 if(room=1amp。 scanf(%d,amp。 /*判斷車場內是否有車*/ if(Entertop0) /*有車*/ { while(1) /*輸入離開車輛的信息*/ { printf(\t\t\t停車場里停放的車輛總數: %d,Entertop)。 CarNode *p,*t。 return(1)。 Wrearnext=t。 tdata=p。 getch()。 return(1)。(preachtime))。 printf(\n\t\t\t請輸入該車輛到達的時間: )。 if(EntertopMAX) /*車場未滿,車進車場*/ { Entertop++。 scanf(%d,amp。 flushall()。 QueueNode *t。 free(p)。 A2=pleavetime。 printf(\n\n\t\t\t離開車輛離開時間: %d,pleavetime)。 printf(\n\t\t\t離開車輛的車牌號: %d,pnum)。 scanf(%d,amp。} void PRINT(CarNode *p) /*打印出站車的信息*/ { int A1,A2。 return(1)。 if(Qhead!=NULL) { Qheadnext=NULL。i++) sstack[stop]=NULL。 for(i=0。 } } }/*
點擊復制文檔內容
環(huán)評公示相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1