From bb77383979e9446dafba111136912fe18935434f 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:20:39 +0800 Subject: [PATCH] C4 --- README.md | 84 ++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 83 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b5de2b8..1904252 100644 --- a/README.md +++ b/README.md @@ -82,7 +82,89 @@ ``` ##C4:打印菜单,实现功能{231-312} ``` -代码: +代码: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