From c73cddd64320780a70db43cdfe2e5fe7a1b4bc6d Mon Sep 17 00:00:00 2001 From: zhouyufan <2467848647@qq.com> Date: Sun, 21 May 2023 16:11:23 +0800 Subject: [PATCH] =?UTF-8?q?c3=E5=87=BD=E6=95=B0=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- c3函数功能 | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 c3函数功能 diff --git a/c3函数功能 b/c3函数功能 new file mode 100644 index 0000000..74ca0ff --- /dev/null +++ b/c3函数功能 @@ -0,0 +1,17 @@ +//3 函数功能:计算每门课程的总分和平均分 +void AverSumofEveryCourse(STU stu[], int n, int m) +{ + int i, j; + float sum[COURSE_NUM], aver[COURSE_NUM]; + for (j=0; j