- 2
- 0
- 约8.57千字
- 约 24页
- 2017-07-05 发布于河南
- 举报
C大作业——搜索线路(国外英文资料)
C大作业——搜索线路
//C language big homework
//2011302530034
Information security class 2 / / Li Yuan
#includestdio.h
#includestdlib.h
#includestring.h
#define NUM 3
Struct time{
Int days;
Int hours;
Int minutes;
};
Struct station{
Struct time arrive;
Struct time leave;
Char name[20];
Int money;
Int distance;
};
Struct routine{
Char train[20];
Char from[20];
Char to[20];
Struct time start;
Struct time end;
Struct time process;
Int distance;
Int money;
};
Int sousuo (char, *a, char, *b);
Struct, time, Shicha (struct, time, a, struct, time, B);
Int compare (struct, time, a, struct, time, B);
Int check (struct, time, a);
Void outresult (struct, routine, a);
Void outtrain (struct, station, a);
Int, choose ();
Struct, routine, pass (struct, station, *a, struct, station, *b);
Int (main) / main function
{
Struct routine result[10];
Int, P, Q, m, n[NUM]={0}, G, h, K, I, J, s[3]={16,18,20};
Char, a, B, C, D, qi[20], zhong[20];
Struct, station, *e[6]={NULL, NULL, NULL, NULL, NULL};
Struct, station, *f[6]={NULL, NULL, NULL, NULL, NULL};
Struct, station, train[NUM][20]={{{0,0,0,0,0,0, T235, 0,0}, {1,12,13,1,12,13, Tianjin, 0,0}, {1,13,30,1,13,34, Cangzhou, 20126},
{1,14,38,1,14,58, Dezhou, 38239}, {1,15,47,1,15,50, Hengshui, 47301}, {1,17,18,1,17,22, Shijiazhuang, 63419},
{1,19,46,1,19,48, Anyang, 92644}, {1,21,27,1,21,34, Zhengzhou, 113831}, {1,22,18,1,22,22, Xuchang, 120917},
{2,0,28,2,0,30, Xinyang, 1431133}, {2,2,49,2,2,57, Wuchang, 1701367}, {2,4,57,2,4,59, Yueyang, 1911582},
{2,6,18,2,6,24, Changsha, 2031729}, {2,9,52,2,9,54, 2312062}, {2,11,28,2,11,30, Chenzhou, Shaoguan East, 2452215},
{2,13,43,2,13,43, Guangzhou, 2662436}},
{{0,0,0,0,0,0, T192, 0,0}, {1,19,04,1,19,04, Hankou, 0,0}, {1,19,46,1,19,48, Xiaogan, 13,70},
{1,21,13,1,21,15, Xinyang.,
33214}, {1,23,39,1,23,42, Xuchang, 63430}, {2,0,30,2,0,40, Zhengzhou, 73516},
{2,2,1,2,2,3, Luoyang, 87640}, {2,3,34,2,3,36, Sanmenxia, 103762}, {2,6,40,2,6,51, Xian, 1371027},
{2,8,29,2,8,33, Baoji, 1501200}, {2,10,6,2,10,10, Tianshui,
您可能关注的文档
- !!!变压器的要求和技术参数(国外英文资料).doc
- (上卷)重新学会笑--------中国式新森田教...(国外英文资料).doc
- (宁鸣)晨间(国外英文资料).doc
- (四)津液-(国外英文资料).doc
- (新版)高强轻质高温耐火砖生产制造制备及应用工艺专利技术文集(国外英文资料).doc
- (图解)普林斯顿进攻体系(国外英文资料).doc
- (第1章) 单片机教案(国外英文资料).doc
- (考试时间:70分钟 试卷满分:70分 考试形式:开卷)(国外英文资料).doc
- - 上海LNG加气站 上海CNG加气站博客上海LNG加气站 上海CNG加气站博客(国外英文资料).doc
- ...我相信能耐耐心心看完文章的人,不用再对手机这东西纠结了_百度文库...(国外英文资料).doc
最近下载
- 高压电缆中间头制作措施方案.pdf
- 内容文本分析案例dcc500c机.pdf VIP
- 数学(天津卷02)-2024年高考押题预测卷(全解全析).docx VIP
- 2026年黑龙江林业职业技术学院单招职业适应性测试题库附答案.docx VIP
- 2023年高考押题预测卷02(天津卷)-英语(全解全析).docx VIP
- 2023年高考押题预测卷01(天津卷)-英语(全解全析).docx VIP
- 2024年高考英语临考押题卷01(天津卷)(全解全析).docx VIP
- 高中美术《美术鉴赏》 第一课《培养审美的眼睛——美术鉴赏及其意义》课件共55张.ppt VIP
- 申菱组合式空气处理机组.pdf
- 2024年高考英语临考押题卷02(天津卷)(全解全析) .docx VIP
原创力文档

文档评论(0)