From 288c343d274692cb74796e063b035708c5c63ec2 Mon Sep 17 00:00:00 2001 From: liyuxuan <2928130624@qq.com> Date: Sun, 21 May 2023 15:56:00 +0800 Subject: [PATCH 1/3] 123 --- c4.drawio.svg | 2 +- xitong.drawio.svg | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/c4.drawio.svg b/c4.drawio.svg index ffef347..626c180 100644 --- a/c4.drawio.svg +++ b/c4.drawio.svg @@ -1,4 +1,4 @@ - + diff --git a/xitong.drawio.svg b/xitong.drawio.svg index 4683a26..f8ac599 100644 --- a/xitong.drawio.svg +++ b/xitong.drawio.svg @@ -1,4 +1,4 @@ - + -- 2.34.1 From dfc428266a3e12fd2727f692107ce4d0a56b20fd Mon Sep 17 00:00:00 2001 From: liyuxuan <2928130624@qq.com> Date: Sun, 21 May 2023 16:09:45 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E5=87=BD=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- c5.md | 4 ++++ c6.md | 4 ++++ c7.md | 7 +++++++ c8.md | 7 +++++++ 4 files changed, 22 insertions(+) create mode 100644 c5.md create mode 100644 c6.md create mode 100644 c7.md create mode 100644 c8.md diff --git a/c5.md b/c5.md new file mode 100644 index 0000000..e292cc9 --- /dev/null +++ b/c5.md @@ -0,0 +1,4 @@ +int Ascending(float a, float b) +{ + return a < b; // 这样比较决定了按升序排序,如果a b; +} \ No newline at end of file diff --git a/c7.md b/c7.md new file mode 100644 index 0000000..8dbf3db --- /dev/null +++ b/c7.md @@ -0,0 +1,7 @@ +void SwapFloat(float *x, float *y) +{ +float temp; +temp = *x; +*x = *y; +*y = temp; +} \ No newline at end of file diff --git a/c8.md b/c8.md new file mode 100644 index 0000000..68f1b39 --- /dev/null +++ b/c8.md @@ -0,0 +1,7 @@ +void SwapLong(long *x, long *y) +{ +long temp; +temp = *x; +*x = *y; +*y = temp; +} \ No newline at end of file -- 2.34.1 From 5fb851808c5538ea24fa5b869581e37a0be219ac Mon Sep 17 00:00:00 2001 From: liyuxuan <2928130624@qq.com> Date: Sun, 21 May 2023 16:23:30 +0800 Subject: [PATCH 3/3] model --- model.md | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 model.md diff --git a/model.md b/model.md new file mode 100644 index 0000000..cd5ced7 --- /dev/null +++ b/model.md @@ -0,0 +1,37 @@ +main +系统主函数模块,显示菜单,根据用户选择的菜单命令,执行相关操作。 + +ReadScore +输入n个学生的m门课成绩 +AverSumofEveryStudent +计算每个学生各门课程的总分和平均分 +AverSumofEveryCourse +计算每门课程的总分和平均分 +SortbyScore +按选择法将数组sum的元素值排序 +Ascending +使数据按升序排序 +Descending +使数据按降序排序 +SwapFloat +交换两个单精度浮点型数据 +SwapLong +交换两个长整型数据 +SwapChar +交换两个字符串 +AsSortbyNum +按选择法将数组num的元素值按从低到高排序 +AsSortbyNum +交换法实现字符串按字典顺序排序 +SearchbyNum +按学号查找学生成绩并显示查找结果 +SearchbyName +按姓名的字典顺序排出成绩表 +StatisticAnalysis +统计各分数段的学生人数及所占的百分比 +PrintScore +打印学生成绩 +WritetoFile +输出n个学生的学号、姓名及m门课程的成绩到文件student.txt中 +ReadfromFile +从文件中读取学生的学号、姓名及成绩等信息写入到结构体数组stu中 \ No newline at end of file -- 2.34.1