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

正文內(nèi)容

航空客運(yùn)訂票系統(tǒng)(參考版)

2025-06-22 13:20本頁(yè)面
  

【正文】 } 課程設(shè)計(jì)評(píng)分表課程名稱(chēng): 數(shù)據(jù)結(jié)構(gòu) 項(xiàng) 目評(píng) 價(jià)設(shè)計(jì)方案的合理性與創(chuàng)造性設(shè)計(jì)與調(diào)試結(jié)果設(shè)計(jì)說(shuō)明書(shū)的質(zhì)量答辯陳述與回答問(wèn)題情況課程設(shè)計(jì)周表現(xiàn)情況綜合成績(jī) 教師簽名: 日 期: 25。break。039。break。:system(cls)。 case 39。:Refund()。 case 39。:book()。 case 39。:search()。 case 39。:printline()。 do{ switch(getchar()) {case 39。 boundary()。pnext=qnext。premain=120。strcpy(pplane_num,1111111)。strcpy(pter_address,hunan)。 //航線(xiàn)三 pbooked=NULL。qnext=p。ptotal=120。 pdate=2。 strcpy(pline_num,002)。pwait=NULL。 p=(airline *)malloc(sizeof(airline))。pnext=qnext。premain=120。strcpy(pplane_num,3333333)。 strcpy(pter_address,jiangsu)。 //航線(xiàn)一 pbooked=NULL。q=L。strcpy(Lplane_num,0000000)。strcpy(Lter_address,00000000)。//初始化航線(xiàn)信息 Lwait=NULL。 L=(airline *)malloc(sizeof(airline))。boundary()。p=pnext) {P(%15s%7s%15s%8d%12d\n,pter_address,pline_num,pplane_num,pdate,premain)。 for(。 p=Lnext。 }/********************顯示所有航班信息***************************/void printline() { int flag。boundary()。 if(i==1) book()。 S(%d,amp。 P(Booking the tickets?(Sure,please input 1。} if(p) {P(終點(diǎn)站 航班號(hào) 飛機(jī)號(hào) 飛行周日 余票量\n)。 default:P(Wrong,input again!\n)。flag=1。break。 case 3: p=search_date()。flag=1。break。) switch(i) //按照選擇項(xiàng)進(jìn)行操作 { case 1: p=search_line()。 for(。 //航班終點(diǎn) S(%d,amp。 //飛機(jī)號(hào)碼 P(The date of the flight3\n)。 //請(qǐng)輸入查詢(xún)航班的方式 P(The number of the flight1\n)。airline *p。 }}}}/***************航班查詢(xún)系統(tǒng)*****************************/void search(){int i。 waited(p)。 //余票數(shù)目增加 free(c1)。 cnext=cnextnext。flag)。 P(Do you want to return the tickets? YES(1) NO(0)\n)。 } else //找到了此人的訂票信息 {P(The information of returning tickets:\n)。 boundary()。 if(!cnext) //沒(méi)有找到這個(gè)人的信息 {P(Sorry!Can39。cnext。 //再次詢(xún)問(wèn)是否排隊(duì)訂票 boundary()。 P(SUCCESS! O(∩_∩)O \n\n\n\n\n)。 //刪除節(jié)點(diǎn)操作 premain=premain+cnum。flag)。 P(Do you want to return the tickets? YES(1) NO(0)\n)。 } if(!strcmp(a,pbookedname)) // { P(The information of returning tickets:\n)。 boundary()。 if(!pbookedname) //如果未找到這個(gè)人的信息 { P(Sorry!Your information isn39。 } P(Please input your name:)。 boundary()。 //查找到對(duì)應(yīng)的航班 c=pbooked。 customer *c,*c1。 char a[20]。//余票不足時(shí) } pwait=hnext。 } else q=qnext。 premain=premainq0num。 //插入q0節(jié)點(diǎn) q0next=pbooked。 if(flag) //如果選擇訂票 { q0=qnext。S(%d,amp。) {if(qnextnumpremain) //當(dāng)下趟航班余票充足時(shí),詢(xún)問(wèn)顧客是否訂票{P(%s,you are queuing up to book %d tickets,the tickets are adequate.,qnextname,qnextnum)。amp。 for(。 //名字為0000 qnext=pwait。 //初始化q qnum =123。 //如果沒(méi)有排隊(duì)等待就返回 q=(customer *)malloc(sizeof(customer))。} /**************排隊(duì)等待訂票系統(tǒng)*****************************/void waited(airline *p){int flag。cnext=cst。c=cnext)。for(。 //cst直接作為該班次排隊(duì)的人 pwait=cst。flag)。 //顯示此乘客買(mǎi)的票數(shù)對(duì)應(yīng)的座位號(hào)}else //余票不夠時(shí) {P(The remain is not sufficient!! queue up?\n YES(1) \t\t\t NO(0)\n)。premain=premaincstnum。 if(cstnum=premain) //乘客的訂票數(shù)量和剩余的票進(jìn)行比較 { cstnext=pbooked。 //購(gòu)買(mǎi)者姓名 S(%s,cstname)。 P(\n)。 //艙位等級(jí) S(%d,amp。 P(\n)。 // 購(gòu)票張數(shù) S(%d,amp。 cst=(customer *)malloc(sizeof(customer))。 }} //首先進(jìn)行查票 if(p) { P(終點(diǎn)站 航班號(hào) 飛機(jī)號(hào) 飛行周日 余票量 \n)。 default:P(Wrong!!!Please input again!\n)。flag=1。break。 case 2: p=search_address()。flag=1。i)。!flag。 P(The date of the flight===================================3\n)。 //查詢(xún)方式選擇 P(The number of the flight=================================1\n)。customer *cst, *c。 int flag=0。flag)。 P(Stop==(0)\t\tContinue==(1)\n)。 //插入新節(jié)點(diǎn) pnext=q。qwait=NULL。 //總數(shù)為120 qremain=120。//終點(diǎn)站 S(%s,qter_address)。 //飛機(jī)號(hào) S(%s,qplane_num)。qdate)。 //一旦航班已經(jīng)存在,立刻跳出本次循環(huán) } P(Please input the date of the p
點(diǎn)擊復(fù)制文檔內(nèi)容
數(shù)學(xué)相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1