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

正文內(nèi)容

數(shù)據(jù)結(jié)構(gòu)課程設(shè)計(jì)(航空客運(yùn)訂票系統(tǒng))(完整版)

  

【正文】 _________________________________________________________________\n)。 Flight *p1。) { p2Next=NULL。 scanf(%d,amp。p2Customer_Amount)。p2Plane_No)。p2Des_Name)。 /*建立臨時(shí)航線結(jié)點(diǎn)*/ while(1) { if(Head==NULL)/*航線為空*/ { p1=p2=new Flight。 printf(\n\t您所查詢的航班的信息:\n)。}/*航班查找函數(shù)*/void Line_search(){ Flight *p1。 /*該標(biāo)志位0表示未找到相關(guān)信息,反之即找到*/ Flight *p1。amp。Y39。getch()。 else if(answer==39。answer)。 /*各條航線乘客結(jié)點(diǎn)指針*/Customer *Replp1[MAX]。 /*艙位等級(jí)的價(jià)格*/ Customer *CustName。 /*指向下一乘客結(jié)點(diǎn)*/}Customer。 /*定票數(shù)*/ char Rank。 /*飛行周日*/ int Customer_Amount。 /*所有航線的定票乘客總數(shù)*/Flight *Head。/*詢問(wèn)是否繼續(xù)的函數(shù)*/char Continue() { char answer。Y39。n39。 if(answer==39。 p1=L。}int Find_Line(PFlight L,char *key,PFlight amp。 } p1=p1Next。 return。 } printf(\n______________________________________________________________________________\n)。 /*保留當(dāng)前航班結(jié)點(diǎn)地址*/ } printf(\n\t添加新的航線!\n)。 else break。 else break。 scanf(%d,amp。 /*初始候補(bǔ)名單為空 */ shouldsave=1。 return 1。 printf(Des_Name Flight_No Plane_No Week_Day Cust_Num Free_Num 1_Price 2_Price 3_Price\n)。 while(1) { printf(\n\t\t航線管理菜單:)。 scanf(%s,amp。:Line_search()。:return。 char c。 printf(\n\t請(qǐng)輸入航線號(hào):)。 } else break。 Custp1[Flight_No]=p2。Custp1[Flight_No]Name)。Custp1[Flight_No]Rank=39。 if(Ticket_Count10) /*為顯示規(guī)整,作相應(yīng)處理*/ printf(\n\t)。 }/*滿足定票數(shù)*/ else if(p1Free_Amount==0) { printf(\n\t對(duì)不起,票已售完!\n)。y39。 } IsReplace=0。 /*候補(bǔ)乘客的訂票數(shù)*/ while(1) /*數(shù)據(jù)合法性檢驗(yàn)*/ { printf(\n\t請(qǐng)輸入艙位等級(jí):)。amp。/*候補(bǔ)乘客無(wú)座提示*/ shouldsave=1。 if(c==39。 printf(\n\t訂票乘客信息)。 if(p1Free_Amount=1) printf(\n\n\t還有多余的票!\n)。}/*候補(bǔ)乘客信息*/void Display_Replace(){ system(cls)。 return。 } } p1=p1Next。 /*臨時(shí)性定票乘員結(jié)點(diǎn)*/ Customer *p3,*p5。 return。 /*指向該航線的乘客名單的首地址 */ printf(\n\t請(qǐng)輸入您的姓名:)。 /*記錄指針*/ IDinfor=p2IDinfor。 } } p2=p2Next。 } else { p1Free_Amount+=priorNextAmount。 while(p3!=NULL) { if(p3Amount=p1Free_Amount)/*候補(bǔ)乘客的定票數(shù)小于或等于剩余票數(shù)*/ { printf(\n\t候補(bǔ)乘客已經(jīng)存在!\n)。 p4IDinfor=IDinfor。 } if(p3Next!=NULL) if(p3NextAmount=p1Free_Amount) p5=p3。n39。 printf(\\n)。break。 default:ErrorMess()。 printf(\n******************************************************************************\n)。 scanf(%s,amp。:bookingMenu()。:CustomermagMenu()。)。 /*乘客管理*/ case 39。 /*訂票辦理*/ case 39。 switch(c) { case 39。 printf(\t 票 辦 理 菜 單\n)。 //屏幕顏色設(shè)定 system(mode con: cols=78 lines=35)。239。 printf(\t請(qǐng)選擇您想要的服務(wù):)。 }/*while*/}/*乘客管理子菜單函數(shù)*/void CustomermagMenu(){ char c。 /*指向下一候補(bǔ)乘客結(jié)點(diǎn)*/ shouldsave=1。 /*減去相應(yīng)的票數(shù)*/ Customer_Count++。 p4Next=NULL。 /*指向下一乘客結(jié)點(diǎn)*/ } } else { p1Free_Amount+=priorNextAmount。 }/*while */ if(!flag) printf(\n\t對(duì)不起,乘客不存在!\n)。 break。name)。 tag=0。 /*用戶輸入的航班數(shù)據(jù)*/ int tag=0。 printf(\n\t按任意鍵返回!)。 printf(Name Flight_No Plane_No Tic_Amount Des_Name Rank_No ID\n)。 Customer *p2。 p2=p2
點(diǎn)擊復(fù)制文檔內(nèi)容
教學(xué)教案相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1