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

正文內(nèi)容

軟件課程設(shè)計(jì)--c語言設(shè)計(jì)火車票訂票系統(tǒng)之源代碼(模擬數(shù)據(jù)庫功能)(需求分析可行性分析)-資料下載頁

2024-12-05 17:17本頁面

【導(dǎo)讀】,全部數(shù)據(jù)可以只放在內(nèi)存中。理訂票手續(xù),否則依次詢問其他排隊(duì)候補(bǔ)的客戶。④登記旅客情況:包括旅客姓名,性別,年齡,家庭住址,聯(lián)系方式等。到站,票價(jià),到達(dá)時(shí)間,是否已被購(gòu)買標(biāo)識(shí),才用mark標(biāo)識(shí),當(dāng)mark為1時(shí)車票已售出,當(dāng)mark為0. 時(shí)車票還未售出.以及指向下一個(gè)結(jié)點(diǎn)的指針.縱向鏈表采用循環(huán)鏈表,尾指針指向首指針.數(shù),實(shí)現(xiàn)相應(yīng)的功能。在主函數(shù)開始處做下First標(biāo)識(shí),以便在其他函數(shù)中使用goto語句返回。主函數(shù)的用戶界面。Total()函數(shù)主要負(fù)責(zé)統(tǒng)計(jì)整個(gè)訂票系統(tǒng)的情況.

  

【正文】 booked!”)。 printf(%d,%d,%d,onum,onum2, otime)。 /*輸 出橫向鏈表的數(shù)據(jù) */ printf(“%s”,“%d”,“%d”,“%d”,“%d”,sname,amp。stime,amp。smoney,amp。sseat,amp。smark)。 /*輸出縱向鏈表的數(shù)據(jù) */ goto first。 } void inquire() { struct ticket *p。 struct station *q。 int t。 int *o,*s。 printf(“please enter the number:”)。 scanf(“%d”,amp。f)。 /*輸入需要的車次 */ printf(“please enter the station:”)。 scanf(“%d”,amp。h)。 /*輸入需要到達(dá)的車站名 */ p=t。 /*初始化 p的值 */ while(p=!null) { if(pnumber==t) { q=pdown。 o=p。 /*把符合條件的橫向鏈表結(jié)點(diǎn)的數(shù)據(jù)給 o*/ while(qnext=!head1) { if(qname==h) { s=q。 /*把符合條件的縱向鏈表的數(shù)據(jù)給 s*/ } q=qnext。 /*縱向鏈表移針 */ } } p=pnext。 /*橫向鏈表移針 */ } printf(%d,%d,%d,onum,onum2, otime)。 /*輸出橫向鏈表的數(shù)據(jù) */ printf(“%s”,“%d”,“%d”,“%d”,“%d”,sname,amp。stime,amp。smoney,amp。sseat,amp。smark)。 /*輸出縱向鏈表的數(shù)據(jù) */ goto first。 } void cancel() { struct ticket *p。 struct station *q。 int t。 int *o,*s。 printf(“please enter the number:”)。 scanf(“%d”,amp。f)。 /*輸入需要的車次 */ printf(“please enter the station:”)。 scanf(“%d”,amp。h)。 /*輸入需要到達(dá)的車站名 */ p=t。 /*初始化 p的值 */ while(p=!null) { if(pnumber=t) { q=pdown。 o=p。 /*把符合條件的橫向鏈表結(jié)點(diǎn)的數(shù)據(jù)給 o*/ while(qnext=!head1) { if(qname=h) { qmark=0。 /*修改 mark 標(biāo)記 */ s=q。 /*把符合條件的縱向鏈表的數(shù)據(jù)給 s*/ } q=qnext。 /*縱向鏈表移針 */ }} p=pnext。 /*橫向鏈表移針 */ } printf(“your ticket has already cancel!”)。 printf(%d,%d,%d,onum,onum2, otime)。 /*輸出橫向鏈表的數(shù)據(jù) */ printf(“%s”,“%d”,“%d”,“%d”,“%d”,sname,amp。stime,amp。smoney,amp。sseat,amp。smark)。 /*輸出縱向鏈表的數(shù)據(jù) */ goto first。 } void you() { struct you *head。 struct you *p。 p=(struct you *)malloc(len)。 scanf(%d,amp。pname,amp。pnum,amp。pnum1,amp。ptime,amp。ptime1)。 } goto First。 } void find() { struct you *head。 struct you *p。 int u。 scanf(“%d”,amp。u)。 while(p=!null) { if(pnum=u) {s=p。} p=pnext。 } printf(“%s”,”%d”,”%d”,”%d”,”%d”,pname,pnum,pnum1,ptime,ptime1)。 } void total() { int *p,*q。 int n。 p=t。 while(p=!null) { while(qnext=!head1) { if (mark=1) {n=n+1。} q=qnext。 } p=pnext。 } printf(“the number of the booked ticket are :”)。 printf(“%d”,n)。 } Main() { int *t。 int c。 First: printf(“wele to our ticket system!\n”)。 printf(“ the data.\n”)。 /*按 1鍵輸入數(shù)據(jù) */ printf(“ the ticket.\n”)。 /*按 2鍵訂車票 */ printf(“ the ticket.\n”)。 /*按 3鍵查詢車票 */ printf(“ the ticket.\n”)。 /*按 4鍵退車票 */ printf(“ your own data.\n”)。 /*按 5鍵輸入個(gè)人信息 */ scanf(“%d”,amp。c)。 switch(c) {case ?1?: t=in()。 break。 case ?2?: book()。 break。 case ?3?: inquire()。 break。 case ?4?: cancel()。 break。 case ?5?: you() 。 break。 default : printf(“you enter an error number\n”)。 } }
點(diǎn)擊復(fù)制文檔內(nèi)容
研究報(bào)告相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1