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

正文內(nèi)容

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

2024-12-25 17:17本頁(yè)面
  

【正文】 六 .運(yùn)行結(jié)果 : 輸入 : 2 3 K717,Beijing,11:00 Yuci,12:00,10,0,56 Yangyuan,1:00,20,0,56 Shijiazhuang,2:00,30,56 輸入 :k717 shijiazhuang 輸出 :you have already booked the ticket! K717,shijiazhuang,11:00,3:00,30,56 七 .程序源代碼 : include include define null 0 define len sizeof(struct ticket) struct ticket { int num。 int time。 struct station *down。 int t。 int time。 int mark。 struct you { int name。 int num1。 int time1。 } struct ticket *in() /*一個(gè)返回指針形的函數(shù) */ { struct ticket *head。 struct station *s1,*s2。 int i。 /*建立橫向鏈表的頭結(jié)點(diǎn) */ scanf(%d,amp。 /*輸入一共所 需的車票信息總數(shù) */ scanf(“%d”,amp。 /*輸入從始發(fā)站到終點(diǎn)站共有幾站 */ head=null。i=m。 p2=p1。 s1=s2=(struct ticket )*malloc(len)。 p1down=s1=s2。p1num,amp。p1time)。i=n,i++) { s2next=s2。 s1=(struct ticket )*malloc(len)。s1time,amp。s1seat,amp。 } /*輸入縱向鏈表的數(shù)據(jù) */ s1next=head1。 return(head)。 /*返回頭指針 */ } void book() { struct ticket *p。 int t。 printf(“please enter the number:”)。f)。 scanf(“%d”,amp。 /*輸入需要到達(dá)的車站名 */ p=t。 o=p。 else qmark=1。 /*把符合條件的縱向鏈表的數(shù)據(jù)給 s*/ } q=qnext。 /*橫向鏈表移針 */ } printf(“your ticket has already booked!”)。 /*輸 出橫向鏈表的數(shù)據(jù) */ printf(“%s”,“%d”,“%d”,“%d”,“%d”,sname,amp。smoney,amp。smark)。 } void inquire() { struct ticket *p。 int t。 printf(“please enter the number:”)。f)。 scanf(“%d”,amp。 /*輸入需要到達(dá)的車站名 */ p=t。 o=p。 /*把符合條件的縱向鏈表的數(shù)據(jù)給 s*/ } q=qnext。 /*橫向鏈表移針 */ } printf(%d,%d,%d,onum,onum2, otime)。stime,amp。sseat,amp。 /*輸出縱向鏈表的數(shù)據(jù) */ goto first。 struct station *q。 int *o,*s。 scanf(“%d”,amp。 /*輸入需要的車次 */ printf(“please enter the station:”)。h)。 /*初始化 p的值 */ while(p=!null) { if(pnumber=t) { q=pdown。 /*把符合條件的橫向鏈表結(jié)點(diǎn)的數(shù)據(jù)給 o*/ while(qnext=!head1) { if(qname=h) { qmark=0。 /*把符合條件的縱向鏈表的數(shù)據(jù)給 s*/ } q=qnext。 /*橫向鏈表移針 */ } printf(“your ticket has already cancel!”)。 /*輸出橫向鏈表的數(shù)據(jù) */ printf(“%s”,“%d”,“%d”,“%d”,“%d”,sname,amp。smoney,amp。smark)。 } void you() { struct you *head。 p=(struct you *)malloc(len)。pname,amp。pnum1,amp。ptime1)。 } void find() { struct you *head。 int u。u)。} p=pnext。 } void total() { int *p,*q。 p=t。} q=qnext。 } printf(“the number of the booked ticket are :”)。 } Main() { int *t。 First: printf(“wele to our ticket system!\n”)。 /*按 1鍵輸入數(shù)據(jù) */ printf(“ the ticket.\n”)。 /*按 3鍵查詢車票 */ printf(“ the ticket.\n”)。 /*按 5鍵輸入個(gè)人信息 */ scanf(“%d”,amp。 switch(c) {case ?1?: t=in()。 case ?2?: book()。 case ?3?: inquire()。 case ?4?: cancel()。 case ?5?: you() 。 default : printf(“you enter an error number\n”)
點(diǎn)擊復(fù)制文檔內(nèi)容
研究報(bào)告相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1