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

正文內(nèi)容

c語言課程設(shè)計(jì)-飛機(jī)定票系統(tǒng)-在線瀏覽

2024-11-05 20:54本頁面
  

【正文】 票信息管理 系統(tǒng)一樣,這樣一來導(dǎo)致這個(gè)文件會(huì)很大,很繁瑣。 . 20 附錄 源程序清單(帶注釋) (帶注釋): /*************************機(jī)票信息錄入 *************************/ void inputinfo(struct allfightinfo *p_fight) { int count。//定義變量 system(cls)。 getch()。//不能打開時(shí)的處理 } rewind(fightfile)。fread(amp。count++) continue。//輸出字符及提示語句 printf(\n\t\t\t 飛機(jī)票信息登記表 \n)。 printf(\n\n)。 21 while(countfightMAXamp。gets(p_fight[count].)!=NULL //輸入航班號(hào) amp。p_fight[count].[0]!=39。) { printf(\n 出發(fā)地 :)。 //輸入出發(fā)地 printf(\n 目的地 :)。 //輸入目的地 fflush(stdin)。 scanf(%d,amp。//輸入價(jià)格 fflush(stdin)。 scanf(%d,amp。//輸入 出發(fā)時(shí)間 if(!(1500p_fight[count].amp。p_fight[count].ear4000))// 判斷年份是否為有效值 { printf(\n\t\t 您輸入的年份有點(diǎn)不和實(shí)際!請(qǐng)確定是否重新輸入(y/n))。 if(ch1==39。||ch==39。)//詢問出錯(cuò)時(shí)是否重新輸入 { printf(\n\t\t您放棄重新輸入 年份! )。//轉(zhuǎn)至輸入月份 } printf(\n\t\t請(qǐng)重新輸入年份! )。//轉(zhuǎn)至輸入年份 22 } fflush(stdin)。 scanf(%d,amp。//時(shí)間的輸入 if(!(0p_fight[count].amp。p_fight[count].=12))//判斷是否有效 { printf(\n\t\t 您輸入的月份有點(diǎn)不和實(shí)際!請(qǐng)確定是否重新輸入(y/n))。 if(ch1==39。||ch==39。) { printf(\n\t\t您放棄重新輸入月份! )。 //轉(zhuǎn)至輸入時(shí)間天 } printf(\n\t\t請(qǐng)重新輸入月份! )。//轉(zhuǎn)至輸入時(shí)間月 } fflush(stdin)。//時(shí)間天的輸入 scanf(%d,amp。 if(!(0p_fight[count].amp。p_fight[count].=31))//判斷是否有效 { printf(\n\t\t 您輸入的日有點(diǎn)不和實(shí)際!請(qǐng)確定是否重新輸入(y/n))。 23 if(ch1==39。||ch==39。) { printf(\n\t\t您放棄日重新輸入! )。//轉(zhuǎn)至輸入出發(fā)時(shí)間 } printf(\n\t\t請(qǐng)重新輸入日! )。//轉(zhuǎn)至輸入時(shí)間天 } fflush(stdin)。//出發(fā)時(shí)間時(shí)的輸入 scanf(%d,amp。 if(!(0=p_fight[count].amp。p_fight[count].r=23))//不合適時(shí)的處理 { printf(\n\t\t 您輸入的時(shí)間有點(diǎn)不和實(shí)際!請(qǐng)確定是否重新輸入(y/n))。//輸入一個(gè)字符 if(ch1==39。||ch==39。)//判斷字符 { printf(\n\t\t您放棄時(shí)間重新輸入! )。 //轉(zhuǎn)至出發(fā)分的輸入 } printf(\n\t\t請(qǐng)重新輸入時(shí)間! )。 } fflush(stdin)。 24 scanf(%d,amp。 if(!(0=p_fight[count].amp。p_fight[count].inute=59)) { printf(\n\t\t 您輸入的時(shí)間有點(diǎn)不和實(shí)際!請(qǐng)確定是否重新輸入(y/n))。 if(ch1==39。||ch==39。) { printf(\n\t\t您放棄時(shí)間重新輸入! )。 } printf(\n\t\t請(qǐng)重新輸入時(shí)間! )。 } fflush(stdin)。//輸入到達(dá)時(shí)間 scanf(%d,amp。 if(p_fight[count].p_fight[count].)//判斷輸入到達(dá)的年份是否為有效,到達(dá)時(shí)間不能小于出發(fā)時(shí)間(下同) { printf(您輸入的到達(dá)時(shí)間小于起飛時(shí)間 ,請(qǐng)重新輸入到達(dá)時(shí)間年 !)。 } if(!(1500p_fight[count].amp。p_fight[count].ryear4000)) { 25 printf(\n\t\t 您輸入的年份有點(diǎn)不和實(shí)際!請(qǐng)確定是否重新輸入(y/n))。 if(ch1==39。||ch==39。) { printf(\n\t\t您放棄重新輸入年份! )。 } printf(\n\t\t請(qǐng)重新輸入年份! )。 } fflush(stdin)。 scanf(%d,amp。 if(p_fight[count].==p_fight[count].amp。p_fight[count].p_fight[count].) { printf(您輸入的到達(dá)時(shí)間小于起飛時(shí)間 ,請(qǐng)重新輸入到達(dá)時(shí)間月 !)。 } if(!(0p_fight[count].amp。p_fight[count].th=12)) { printf(\n\t\t 您輸入的月份有點(diǎn)不和實(shí)際!請(qǐng)確定是否重新輸入(y/n))。 if(ch1==39。||ch==39。) { 26 printf(\n\t\t您放棄重新輸入月份! )。 } printf(\n\t\t請(qǐng)重新輸入月份! )。 } fflush(stdin)。 scanf(%d,amp。 if(p_fight[count].==p_fight[count].amp。p_fight[count].p_fight[count].) { printf(您輸入的到達(dá)時(shí)間小于起飛時(shí)間 ,請(qǐng)重新輸入到達(dá)時(shí)間日 !)。 } if(!(0p_fight[count].amp。p_fight[count].=31)) { printf(\n\t\t 您輸入的日有點(diǎn)不和實(shí)際!請(qǐng)確定是否重新輸入(y/n))。 if(ch1==39。||ch==39。) { printf(\n\t\t您放棄日重新輸入! )。 } printf(\n\t\t請(qǐng)重新輸入日! )。 } fflush(stdin)。 scanf(%d,amp。 if(p_fight[count].==p_fight[count].amp。p_fight[count].==p_fight[count].amp。p_fight[count].p_fight[count].) { printf(您輸入的到達(dá)時(shí)間小于起飛時(shí)間 ,請(qǐng)重新輸入到達(dá)時(shí)間時(shí) !)。 } if(!(0=p_fight[count].amp。p_fight[count].our=23)) { printf(\n\t\t 您輸入的時(shí)間有點(diǎn)不和實(shí)際!請(qǐng)確定是否重新輸入(y/n))。 if(ch1==39。||ch==39。) { printf(\n\t\t您放棄時(shí)間重新輸入! )。 } printf(\n\t\t請(qǐng)重新輸入時(shí)間! )。 } fflush(stdin)。 scanf(%d,amp。 if(p_fight[count].==p_fight[count].amp。p_fight[count].==p_fight[count].amp。p_fight[count].==p_fight[count].amp。p_fight[count].fighp_fight[count].) { printf(您輸入的到達(dá)時(shí)間小于起飛時(shí)間 ,請(qǐng)重新輸入到達(dá) 時(shí)間分 !)。 } if(!(0=p_fight[count].amp。p_fight[count].rminute=59)) { printf(\n\t\t 您輸入的時(shí)間有點(diǎn)不和實(shí)際!請(qǐng)確定是否重新輸入(y/n))。 if(ch1==39。||ch==39。) { printf(\n\t\t您放棄時(shí)間重新輸入! )。 } printf(\n\t\t請(qǐng)重新輸入時(shí)間! )。 } fflush(stdin)。 scanf(%d,amp。 if(!(0p_fight[count].amp。p_fight[count]. 29 =100)) { printf(\n\t\t 您輸入的折扣有點(diǎn)不和實(shí)際!請(qǐng)確定是否 重新輸入(y/n))。 if(ch1==39。||ch==39。) { printf(\n\t\t您放棄折扣重新輸入! )。 } printf(\n\t\t請(qǐng)重新輸入折扣! )。 } fflush(stdin)。 scanf(%d,amp。 fflush(stdin)。 scanf(%d,amp。 if(p_fight[count].p_fight[count].ticket) { printf(您輸入的剩余票不合乎實(shí)際 !!!請(qǐng)重新輸入 !)。 } fflush(stdin)。p_fight[count++].fight1,sizeof(struct fightinfo),1,fightfile)。//詢問是否輸入下一個(gè)機(jī)票信息 ch=getch()。y39。Y39。 printf(\n 請(qǐng)輸入下一個(gè)飛機(jī)票信息 \n)。 continue。 fclose(fightfile)。 //返回子菜單 system(cls)。 } } printf(輸入有誤,終止飛機(jī)票信息錄信,返回 !)。//等待輸入字符 system(cls)。 //返回 31 :( 附) /* **************************************** * Author:飛機(jī)訂票系統(tǒng)組 * Datetime:2020/06*/ include include include include include define fightMAX 1000 void inputinfo(struct allfightinfo *)。//旅客信息信息讀取 void allabout(struct allfightinfo *)。//修改機(jī)票信息 void password()。//身份驗(yàn)證 void allabout(struct allfightinfo *)。//修改機(jī)票信息 void password()。//身份驗(yàn)證 void modifycode()。//刪除 void fightcontrol(struct allfightinfo *)。//訂票系統(tǒng) void display(struct allfightinfo *p_fight)。//退票 void enquiry(struct allfightinfo *p_fight)。//歡迎 void modifycode()。//刪除 void fightcontrol(struct allfightinfo *)。//訂票系統(tǒng) void display(struct allfightinfo *p_fight)。//退票 void enquiry(struct allfightinfo *p_fight)。//
點(diǎn)擊復(fù)制文檔內(nèi)容
高考資料相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1