html模版




標題

求助:請用c語言撰寫火車時刻表


問題


圖片參考:http://aletcat.myweb.hinet.net/train.jpg請用c語言撰寫火車時刻表


最佳解答


#include #include struct DATA{ char name[10]; char INT_time[9][7]; }; typedef struct DATA Data; void Print(Data *PrintData,int n); int main(int argc, char* argv[]) { int n=9; Data member[9]={{"自強1101",{"00.05","00.28","00.40","00.57","00.57","01.14","01.23"," ","0.57"}}, {"自強1127",{"08.10","08.39","08.51","09.01"," ","09.23","09.32"," ","10.01"}}, {"莒光1209",{"08.34","08.53","09.05","09.15"," ","09.23"," "," ","10.27"}}, {"莒光1221",{"16.35","17.01","17.13","17.23"," ","17.44"," "," ","18.29"}}, {"區間2509",{"06.34","07.11","07.20","07.31","07.37","08.04","08.16","08.42","08.55"}}, {"區間2113",{"10.15","10.45","10.55","11.07","11.19","11.40","11.51","12.21","12.34"}}, {"復興2175",{"11.34","12.00","12.10","12.21","12.26","12.53","13.05","13.34","13.47"}}, {"復興2199",{"15.33","16.00","16.10","16.21","16.27","16.48","17.07","17.48","18.04"}}, {"普快2199",{"15.33","16.00","16.10","16.21","16.27","16.48","17.07","17.48","18.04"}} }; Print(member,n); free(member); system("pause"); return 0; } //--------------------------------------------------------------------------- void Print(Data *PrintData,int n) { int i; printf(" 七堵 松山 台北 板橋 樹林 桃園 中壢 新豐 新竹 "); for(i=0;i

其他答案





以上文章來自奇摩知識家,如有侵犯請留言告知


https://tw.answers.yahoo.com/question/index?qid=20090408000015KK11176

95DB40FD02AB4E25
arrow
arrow

    b51hn17r 發表在 痞客邦 留言(0) 人氣()