From 57fbf4c51799ac4d357241041b811b5a57632eee Mon Sep 17 00:00:00 2001 From: Tingyu Meng <29924168887@qq.com> Date: Sun, 21 May 2023 16:35:38 +0800 Subject: [PATCH] =?UTF-8?q?mty.8.=E7=94=BB=E5=9B=BE.=E4=BC=AA=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- c8伪代码.md | 2 + mty.8.drawio.svg | 343 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 345 insertions(+) create mode 100644 c8伪代码.md create mode 100644 mty.8.drawio.svg diff --git a/c8伪代码.md b/c8伪代码.md new file mode 100644 index 0000000..66688a5 --- /dev/null +++ b/c8伪代码.md @@ -0,0 +1,2 @@ +Step 1:利用for循环给i赋值为0 +Step 2:利用of条件语句和循环判断是否此学生并显示结果 \ No newline at end of file diff --git a/mty.8.drawio.svg b/mty.8.drawio.svg new file mode 100644 index 0000000..9242092 --- /dev/null +++ b/mty.8.drawio.svg @@ -0,0 +1,343 @@ + + + + + + + + + +
+
+
+ SortbyName +
+
+
+
+ + SortbyName + +
+
+ + + + + + + +
+
+
+ Integer i +
+
+
+
+ + Integer i + +
+
+ + + + + + + +
+
+
+ Integer j +
+
+
+
+ + Integer j + +
+
+ + + + + + + +
+
+
+ Integer t +
+
+
+
+ + Integer t + +
+
+ + + + + + + + +
+
+
+ j=0 to n-2 +
+
+
+
+ + j=0 to n-2 + +
+
+ + + + + + + + + + + + + + + + +
+
+
+ t=0 t0 m-1 +
+
+
+
+ + t=0 t0 m-1 + +
+
+ + + + +
+
+
+ true +
+
+
+
+
+ + true + +
+
+ + + + + + + + + +
+
+
+ SwapFloat(&stu[i].sum, +
+ &stu[i].sum) +
+
+
+
+ + SwapFloat(&stu[i].sum... + +
+
+ + + + + + + +
+
+
+ SwapFloat(&stu[i].sum, +
+ &stu[i].aver) +
+
+
+
+ + SwapFloat(&stu[i].sum... + +
+
+ + + + + + + +
+
+
+ SwapFloat(&stu[i].num, +
+ &stu[i].num) +
+
+
+
+ + SwapFloat(&stu[i].num... + +
+
+ + + + + + + +
+
+
+ SwapChar[stu[i].name, +
+ stu[j].name] +
+
+
+
+ + SwapChar[stu[i].name,... + +
+
+ + + + + + + + +
+
+
+ End +
+
+
+
+ + End + +
+
+ + + + +
+
+
+ next +
+
+
+
+ + next + +
+
+ + + + +
+
+
+ done +
+
+
+
+ + done + +
+
+ + + + +
+
+
+ t=0 t0 m-1 +
+
+
+
+ + t=0 t0 m-1 + +
+
+ + + + + + +
+
+
+ SwapFloat(&stu[t]), +
+ &stu[j].score[t] +
+
+
+
+ + SwapFloat(&stu[t... + +
+
+
+ + + + + Text is not SVG - cannot display + + + +
\ No newline at end of file