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

正文內容

c語言課程設計報告_航空訂票系統(tǒng)-免費閱讀

2024-09-20 18:37 上一頁面

下一頁面
  

【正文】 \039。 gets(day)。p1=p1next) if((strncmp(year,p1flight_time_start,7)==0)) { flag=1。 year[5]=39。 printf(\n\t\t\t月: )。p1!=NULL。 printf(\n\t【 0】返回上頁 \n)。 pri_hangban()。 head_flight=file_3()。 printf(\n)。 printf(\n\n\t\t\t航班號: )。 pri_hangban()。amp。 printf(\n\n\t\t\t目的地: )。 char start[20],end[20]。break。break。break。 ch=getch()。 printf(\n\t\t\t 『信息查詢』 \n\n\n)。 } file_4(head_flight)。639。 getchar()。:printf(\n\t\t航班號: )。break。 printf(\t\t【 5】起飛時間 )。 printf(\n)。 char num[20],ch。 sleep(1)。 gets(num)。 //保存到文件 } void del_hangban() //刪除某個航班 { Flight *head_flight,*p1,*p2。 strcpy(p1flight_end,end)。 scanf(%f,amp。 || time_end[12]39。039。) { for(i=19。 time_start[11]=39。039。 } if(time_start[9]39。939。 add_hangban()。) { p1=(Flight *)malloc(LEN_Flight)。 do { system(clear)。 char start[20],end[20],num[20],time_start[21],time_end[21]。:system(clear)。:pri_hangban()。:del_hangban()。 printf(\t\t\t【 0】退出登陸 \n\n)。 } } void manager() //登陸成功后跳轉到管理員首頁 { char ch。 system(clear)。 printf(\n\n\t\t\t用戶名: )。 getch()。Pri_Flia //輸出 Pri_Flia為定義在 里的宏 } /**************************************************************/ /* for(i=0。 a2next=a1。 youke(UK)。 printf(\n\n\t\t\t 你所擁有的訂單 \n\n )。 head_youke=file_1()。 } printf(\n\n\n\t\t\t 退票成功 \n)。 for(j=i。 printf(%d,i+1)。a1!=NULL。 a2=a1。 Pri_Tit /**********************************************************/ for(i=0。p1!=NULL。 for(q1=head_youkenext。 Flight *head_flight,*p1。 getch()。p2!=NULL。i3。 printf(\n\n\t 是 否 訂 購 %s 號 %s%s 的 航 班 ? Y/N\n,p1flight_num,p1flight_start,p1flight_end)。 int i,j,flag=0,flag1。 //根據現實輸入需要訂票的航班號 gets(num)。p1=p1next) { if((strcmp(start,p1flight_start)==0)amp。 if(strcmp(start,0)==0) youke(UK)。 char start[20],end[20]。 getch()。 system(clear)。 if(strlen(day)==1) { day[1]=day[0]。 printf(\n\t\t\t按任意鍵返回上頁 \n)。 strcat(year,month)。 if(strcmp(month,0)==0) polling(UK)。 Pri_Fli } if(flag==0) { printf(\n\t\t\t沒有找到相關信息 \n)。 gets(year)。 } void polling_time(Youke *UK) //根據時間查找航班 { Flight *head_flight,*p1。 Pri_Fli } if(flag==0) { system(clear)。 system(clear)。 system(clear)。 //沒有找到時再次進入本函數 } printf(\n\t\t\t按任意鍵返回上頁 \n)。p1!=NULL。 int flag=0。 case39。 case39。 printf(\t\t\t【 2】起降地查詢 \n\n)。sleep(1)。 case39。 case39。 printf(\t\t\t【 3】退票系統(tǒng) \n\n)。 printf(\n\n\n\n\t\t\t無該用戶! \n)。 //傳遞當前登陸者的節(jié)點地址 } if((strcmp(p1name,youke_name)==0)amp。 //調用 passwd(char passwd[20])函數 在中定義 for(p1=head_youkenext。 system(clear)。exit(1)。339。139。 do { system(clear)。*39。 break。 p1=p1next。p2name[i]!=39。 //目的為鏈表結尾指向 NULL,貌似可以不用 .. return head_youke。 p1next=p2。 //將一個結構體大小的數據信息存放在該空間中 for(i=0,p3=p2。 int i。 二 管理員登陸: 增加航班 確定增加新航班后依據提示以此輸入航班號、起飛地、目的地、起飛 時間、到達時間、票價;之后選擇是否繼續(xù)輸入,若選 Y繼續(xù)剛才的循環(huán), 否則退出增加航班。 游客登陸 管理員登陸 申請帳號 信息查詢 訂票系統(tǒng) 退票系統(tǒng) 訂單詳情 增加航班 刪除航班 修改航班信息 查詢航班信息 賬號管理 系統(tǒng)首頁 一 游客登陸: 信息查詢 (依據輸入的航班號來找到對應的航班信息 ) (依據輸入的起飛地和目的地來找到對應航班信息 ) (依據輸入的時間找到對應航班信息 時間可逐漸具體 ) 訂票系統(tǒng) 根據輸入的起飛地與目的地顯示出所有走此航線的航班信息,然后根 據顯示的信息輸入想要訂購航班的航班號,確認購票后系統(tǒng)自動付款將此 航班加入登陸用戶的訂單信息中。 3. 重點設計及編碼。 exit(1)。p3passwd[i]!=39。p1next!=NULL。 exit(1)。\039。i++) { ah=getch()。 continue。 七. 參考文獻 《 C Primer Plus》 《 Linux C編程實戰(zhàn)》 八.附錄: 源代碼(電子版) /*==================================================================== * * Filename: * * Description: Curriculum Design * * Version: * Created: 2020年 06月 08日 18時 52分 56秒 * Revision: none * Compiler: gcc * * Author: Leehom (RenLixiang), * Company: Class 1204 of Computer Science and Technology * * ====================================================================*/ include include include include include include include include include include include include int main(int argc, char *argv[]) { home_page()。 printf(\t\t\t 【 0】退出程序 \n\n)。:manager_denglu()。:system(clear)。 int flag=0。 if(strcmp(youke_name,0)==0) home_page()。 printf(\n\n\n\n\t\t\t登陸成功! \n)。 sleep(1)。 printf(\n\n\t 『尊敬的 %s 歡迎來到本航空公司服務系統(tǒng)』 \n,UKname)。139。339。039。 do { system(clear)。139。339。 } int polling_hangban(Youke *UK) //根據航班號查詢信息 { Flight *head_flight,*p1。 gets(num)。Pri_Tit //宏 在 中定義 Pri_Fli //宏 在 中定義 } if(flag==0) { printf(\n\n\t\t 沒有找到 %s 號航班 \n,num)。 head_flight=file_3()。 if(strcmp(start,0)==0) polling(UK)。p1=p1next) if((strcmp(start,p1flight_start)==0)amp。 getch()。 printf(\n\t\t 『時間查詢』 \n\n\n)。Pri_Tit for(p1=head_flightnext。 printf(\n\t【 0】返回上頁 \n)。39。p1!=NULL。 printf(\n\t\t\t日: )。 year[8]=39。p1=p1next) if(strncmp(year,p1flight_time_start,10)==0) { flag=1。 } int ding_ticket(Youke *UK) { Flight *head_flight,*p1。 printf(\n\t【 0】返回上頁 \n)。 printf(\n)。 sleep(1)。 Youke *head_youke,*q1。 for(p1=head_flightnext。y39。 //選擇支付后跳轉到 pay()函數 在 中定義 for(j=0。 //將訂購的該航 班的航班號賦給num[j] file_2(head_youke)。 } return 0。 head_flight=file_3()。q1=q1next) if(strcmp(q1name,UKname)==0) break。 getch()。 //新建鏈表 a1=p1。a1!=NULL。p1=p1next) //尋找航班信息中與當前游客所存航班號一致的航班信息進行輸出 if(s
點擊復制文檔內容
畢業(yè)設計相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1