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

正文內(nèi)容

c課程設(shè)計(jì)復(fù)數(shù)類的設(shè)計(jì)課程設(shè)計(jì)論文-文庫(kù)吧

2025-06-13 08:02 本頁(yè)面


【正文】 0]。 //定義航班屬性 int timehour。 int timeminiute。 int price。 int leftseat。 public : void hangban_output()//輸出航班信息 { couthangban。 } void start_output()//輸出起始站 { coutstart。 } void end_output()//輸出終點(diǎn)站 { coutend。 } int timehour_output()//輸出時(shí) { return(timehour)。 } int timeminiute_output()//輸出分 { return(timeminiute)。 } int price_output()//輸出票價(jià) { return(price)。 } int leftseat_output()//輸出剩余票數(shù) { return(leftseat)。 } int qishi_return(char *p)//找出符合條件的起始站 { int i。 i=strcmp(p,start)。 return(i)。 } int zhongdian_return(char *p)//找出符合條件的終點(diǎn)站 { int i。 i=strcmp(p,end)。 return(i)。} int hangban_return(char *p)//找出符合條件的航班 { int i。 i=strcmp(p,hangban)。 return(i)。 } void hangban_input()//錄入航班 { cinhangban。 } void start_input()//錄入起始站 { cinstart。 } void end_input()//錄入終點(diǎn)站 { cinend。 } void timehour_input()//錄入時(shí) { cout時(shí):。 cintimehour。 } void timeminiute_input()//錄入分 { cout\t 分:。 cintimeminiute。 } void price_input()//錄入票價(jià) { cinprice。 } void leftseat_input()//錄入剩余座位數(shù) { cinleftseat。 } void shou()//售票后剩余票數(shù)自動(dòng)減一 { leftseat=leftseat1。 } void tui()//退票后剩余票數(shù)自動(dòng)加一 { leftseat=leftseat+1。 } }。flight_system *hangkong=new flight_system[15]。 //分配動(dòng)態(tài)存儲(chǔ)空間void main(){ void foundation_1()。 void foundation_2()。 void foundation_3()。 //聲明基礎(chǔ)功能模塊 void foundation_4()。 void foundation_5()。while(1){ struct tm *local。 char s1[128]。 time_t t。 //獲取系統(tǒng)時(shí)間 t=time(NULL)。 local=localtime(amp。t)。 strftime(s1,128,%Y%m%d %H:%M ,local)。 cout ★ *** 歡迎進(jìn)入航空票務(wù)系統(tǒng) *** ★endl。 cout endl。 cout * * endlendl * * endlendl * * endlendl endl ★當(dāng)前時(shí)間:s1endl。 cout endl。 cout 請(qǐng)選擇您要操作的編號(hào)(選擇0~5):。 int n。 cin n。 while(!(n == 1 || n == 2 || n == 3 || n == 4 || n == 5||n == 0)) { cout 請(qǐng)輸入正確編號(hào)(0~5):。 cin n。 } switch(n) {case 1 :{foundation_1()。}。break。 case 2 :{foundation_2()。}。break。 //功能選擇模塊 case 3 :{foundation_3()。}。break。 case 4 :{foundation_4()。}。break。 case 5 :{foundation_5()。}。break。 case 0 :{return 。}。break。} }}/***********************************************功能模塊一********************************************/void foundation_1(){cout歡迎進(jìn)入信息管理系統(tǒng)endl。 int mima=1234。 int miyue=0。 coutendl請(qǐng)輸入密碼:。 //管理員控制權(quán)限 cinmiyue。 if(miyue!=mima) {coutendl密碼錯(cuò)誤!請(qǐng)重新輸入!endl。} if(miyue==mima) { coutendl密碼正確!endlendl請(qǐng)輸入操作編號(hào),添加請(qǐng)按1,刪除請(qǐng)按2,退出請(qǐng)按339。\n39。 int n。 cinn。 while(!(n==1||n==2||n==3)) {cout 請(qǐng)輸入正確編號(hào)(1~3):。 cinn。} switch(n) { case 3:{return 。}。break。 case 1: {cout請(qǐng)輸入航班號(hào):。 hangkong[num].hangban_input()。 cout請(qǐng)輸入起始站點(diǎn):。 hangkong[num].start_input()。 cout請(qǐng)輸入終點(diǎn)站:。 hangkong[num].end_input()。 cout請(qǐng)輸入時(shí)間:。 hangkong[num].timeho
點(diǎn)擊復(fù)制文檔內(nèi)容
教學(xué)教案相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1