From 42f2a6dffdf96264fd019d3efe362137fdcf5e59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=AD=E4=BD=B3=E6=85=A7?= <1608111480@qq.com> Date: Sat, 8 Jul 2023 20:43:25 +0800 Subject: [PATCH] C4 --- xitong.c | 84 +++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 83 insertions(+), 1 deletion(-) diff --git a/xitong.c b/xitong.c index fec9166..92f40b3 100644 --- a/xitong.c +++ b/xitong.c @@ -227,4 +227,86 @@ void print() { } } printf("\n"); -} \ No newline at end of file +} +int main() +{ + creatnode(); + createlist(); + //createfile(); + //printff(); + int n=10; + printf("正在初始化数据,请稍候!\n"); + //proc(); + printf("欢迎使用本系统!\n"); + while(n){ + printf("欢迎来到上海市地铁交通服务平台!\n"); + printf("1.最佳出行线路推荐\n"); + printf("2.出行费用预估\n"); + printf("0.退出系统!\n"); + printf("请输入!\n"); + scanf("%d",&n); + char str[100]; + int n9,n10; + switch(n){ + case 1:printf("请输入起点\n"); + scanf("%s",str); + n9=-1; + for(int i=0;i