From f4c98ff742a52d426cbe3490e1831fe5777b6cfb Mon Sep 17 00:00:00 2001 From: Cx330 <2011690092@qq.com> Date: Thu, 20 Apr 2023 09:38:29 +0800 Subject: [PATCH] =?UTF-8?q?Cx330=5F=E5=B0=8F=E4=BF=AE=E5=B0=8F=E8=A1=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0f19ef3..0c9c675 100644 --- a/README.md +++ b/README.md @@ -95,10 +95,20 @@ stu[i].aver=stu[i].sum/m;//求平均 ``` ### C4:计算每门课程的总分和平均分 -选择菜单命令3 +选择菜单命令3,计算每门课程的总分和平均分,并将其输出 + +``` +student n:sum = ,aver = + +``` ### C5:按每个学生的总分由高到低排出名次表 +选择菜单命令4,将结构体中的总分进行排序,在此功能中需注意的是排序时要将整组数据随着总分一起改变 + +``` + +``` ### C6:按每个学生的总分由低到高排出名次表 ### C7:按学号由小到大排出成绩表