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

正文內(nèi)容

數(shù)據(jù)結(jié)構(gòu)課程設(shè)計報告-停車場管理系統(tǒng)(編輯修改稿)

2024-09-03 13:19 本頁面
 

【文章內(nèi)容簡介】 anf(%d,amp。ch)。 if(ch=1amp。amp。ch=4)break。 else printf(\n請選擇(1—4):\n)。 } switch(ch) { case 1:Arrival(amp。Enter,amp。Wait)。break。 /*車輛到達*/ case 2:Leave(amp。Enter,amp。Temp,amp。Wait)。break。 /*車輛離開*/ case 3:List(Enter,Wait)。break。 /*列表打印信息*/ case 4:exit(0)。 /*退出主程序*/ } }}void InitStack(SeqStackCar *s) /*初始化棧*/ { int i。 stop=0。 for(i=0。i=MAX。i++) sstack[stop]=NULL。}int InitQueue(LinkQueueCar *Q) /*初始化便道*/{ Qhead=(QueueNode *)malloc(sizeof(QueueNode))。 if(Qhead!=NULL) { Qheadnext=NULL。 Qrear=Qhead。 return(1)。 } else return(1)。}void PRINT(CarNode *p,int room) /*打印出站車的信息*/{ int A1,A2,B1,B2。 printf(\n車輛離開的時間為:\n)。 scanf(%d:%d,amp。(p),amp。(p))。 printf(\n車牌號為:\n)。 puts(pnum)。 printf(\n其到達時間為: %d:%d,p,p)。 printf(離開時間為: %d:%d,p,p)。 A1=p。 A2=p。 B1=p。 B2=p。 printf(\n應(yīng)交費用為: %,((B1A1)*60+(B2A2))*price)。 free(p)。}int Arrival(SeqStackCar *Enter,LinkQueueCar *W) /*車輛到達*/ { CarNode *p。 QueueNode *t。 p=(CarNode *)malloc(sizeof(CarNode))。 flushall()。 printf(\n請輸入車牌號(如:陜A00000):)。 gets(pnum)。 if(EntertopMAX) /*車場未滿,車進車場*/ { Entertop++。 printf(\n車輛在車場第%d位置.,Entertop)。 printf(\n車輛到達時間為:)。 scanf(%d:%d,amp。(p),amp。(p))。 Enterstack[Entertop]=p。 return(1)。 } else /*車場已滿,車進便道*/ { printf(\n對不起,停車位已滿,請在便道等待,感謝您的配合)。 t=(QueueNode *)malloc(sizeof(QueueNode))。 tdata=p。 tnext=NULL。 Wrearnext=t。 Wrear=t。 return(
點擊復(fù)制文檔內(nèi)容
法律信息相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1