From 186e8cb2e2fe794bf77bb536da9b5a2c2a32fb7a Mon Sep 17 00:00:00 2001 From: Liwenfei <3496841962@qq.com> Date: Wed, 19 Apr 2023 12:44:01 +0800 Subject: [PATCH] menu --- menu | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 menu diff --git a/menu b/menu new file mode 100644 index 0000000..eeb5ec0 --- /dev/null +++ b/menu @@ -0,0 +1,11 @@ +int Menu(void) +{ + int itemSelected; + printf("Management for Students' scores\n"); + printf("1.Input record\n"); + printf("2.Calculate total and average score of every course\n"); + printf("0.Exit\n"); + printf("Please Input your choice:"); + scanf("%d", &itemSelected); // 读入用户输入 + return itemSelected; +} \ No newline at end of file -- 2.34.1