From f60802fdbd68fb3ed627f6fc76e7cb8d7fb9abb8 Mon Sep 17 00:00:00 2001 From: Tingyu Meng <29924168887@qq.com> Date: Sun, 21 May 2023 15:31:22 +0800 Subject: [PATCH 1/6] =?UTF-8?q?c5=E7=94=BB=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mty5.drawio.svg | 329 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 329 insertions(+) create mode 100644 mty5.drawio.svg diff --git a/mty5.drawio.svg b/mty5.drawio.svg new file mode 100644 index 0000000..b2be938 --- /dev/null +++ b/mty5.drawio.svg @@ -0,0 +1,329 @@ + + + + + + + + + +
+
+
+ AsSortbyNum +
+
+
+
+ + AsSortbyNum + +
+
+ + + + + + + +
+
+
+ Integer i +
+
+
+
+ + Integer i + +
+
+ + + + + + + +
+
+
+ Interger j +
+
+
+
+ + Interger j + +
+
+ + + + + + + +
+
+
+ Interger k +
+
+
+
+ + Interger k + +
+
+ + + + + + + +
+
+
+ Interger t +
+
+
+
+ + Interger t + +
+
+ + + + + + + + +
+
+
+ k=!i +
+
+
+
+ + k=!i + +
+
+ + + + + + + + + + + + + + + + + + + + +
+
+
+ t=0 t0 m-1 +
+
+
+
+ + t=0 t0 m-1 + +
+
+ + + + +
+
+
+ false +
+
+
+
+ + false + +
+
+ + + + +
+
+
+ true +
+
+
+
+
+ + true + +
+
+ + + + + +
+
+
+ SwapFloat(&stu[t]), +
+ &stu[j].score[t] +
+
+
+
+ + SwapFloat(&stu[t... + +
+
+ + + + + + + +
+
+
+ SwapFloat(&stu[k].sum, +
+ &stu[i].sum) +
+
+
+
+ + SwapFloat(&stu[k].sum... + +
+
+ + + + + + + +
+
+
+ SwapFloat(&stu[k].sum, +
+ &stu[i].aver) +
+
+
+
+ + SwapFloat(&stu[k].sum... + +
+
+ + + + + + + +
+
+
+ SwapFloat(&stu[k].num, +
+ &stu[i].num) +
+
+
+
+ + SwapFloat(&stu[k].num... + +
+
+ + + + + +
+
+
+ SwapChar[stu[k].name, +
+ stu] +
+
+
+
+ + SwapChar[stu[k].name,... + +
+
+ + + + + + + + + +
+
+
+ End +
+
+
+
+ + End + +
+
+
+ + + + + Text is not SVG - cannot display + + + +
\ No newline at end of file From 9314aac30ca1b79e29d77c1e6395f5a2d50cf234 Mon Sep 17 00:00:00 2001 From: Tingyu Meng <29924168887@qq.com> Date: Sun, 21 May 2023 15:31:32 +0800 Subject: [PATCH 2/6] =?UTF-8?q?c5=E7=94=BB=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- drawio.svg | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 drawio.svg diff --git a/drawio.svg b/drawio.svg deleted file mode 100644 index e69de29..0000000 From eaf590fede8faef11fc7f2ead87d3ea26a9a96c2 Mon Sep 17 00:00:00 2001 From: Tingyu Meng <29924168887@qq.com> Date: Sun, 21 May 2023 15:51:59 +0800 Subject: [PATCH 3/6] =?UTF-8?q?mty.6.7.=E7=94=BB=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mty6.drawio.svg | 344 +++++++++++++++++++++++++++++ mty5.drawio.svg => mty7.drawio.svg | 88 ++++---- 2 files changed, 388 insertions(+), 44 deletions(-) create mode 100644 mty6.drawio.svg rename mty5.drawio.svg => mty7.drawio.svg (81%) diff --git a/mty6.drawio.svg b/mty6.drawio.svg new file mode 100644 index 0000000..8aae3d4 --- /dev/null +++ b/mty6.drawio.svg @@ -0,0 +1,344 @@ + + + + + + + + + +
+
+
+ AsSortbyName +
+
+
+
+ + AsSortbyName + +
+
+ + + + + + + +
+
+
+ Integer i +
+
+
+
+ + Integer i + +
+
+ + + + + + + +
+
+
+ Interger j +
+
+
+
+ + Interger j + +
+
+ + + + + + + +
+
+
+ Interger t +
+
+
+
+ + Interger 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[t]), +
+ &stu[j].score[t] +
+
+
+
+ + SwapFloat(&stu[t... + +
+
+ + + + + + + +
+
+
+ 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 + +
+
+
+ + + + + Text is not SVG - cannot display + + + +
\ No newline at end of file diff --git a/mty5.drawio.svg b/mty7.drawio.svg similarity index 81% rename from mty5.drawio.svg rename to mty7.drawio.svg index b2be938..73f8a63 100644 --- a/mty5.drawio.svg +++ b/mty7.drawio.svg @@ -1,12 +1,12 @@ - + - + - +
@@ -24,10 +24,10 @@ - + - -
+ +
Integer i @@ -35,7 +35,7 @@
- + Integer i @@ -44,10 +44,10 @@ - + - -
+ +
Interger j @@ -55,7 +55,7 @@
- + Interger j @@ -64,10 +64,10 @@ - + - -
+ +
Interger k @@ -75,7 +75,7 @@
- + Interger k @@ -84,10 +84,10 @@ - + - -
+ +
Interger t @@ -95,7 +95,7 @@
- + Interger t @@ -105,9 +105,9 @@ - + - +
@@ -123,24 +123,24 @@ - + - + - + - + - +
@@ -155,9 +155,9 @@ - + - +
@@ -172,9 +172,9 @@ - + - +
@@ -191,9 +191,9 @@ - + - +
@@ -204,7 +204,7 @@
- + SwapFloat(&stu[t... @@ -213,9 +213,9 @@ - + - +
@@ -235,9 +235,9 @@ - + - +
@@ -257,9 +257,9 @@ - + - +
@@ -277,9 +277,9 @@ - + - +
@@ -298,12 +298,12 @@ - + - + - +
From 0374ce51fa012fd87a22c5503e03ac9877ee027e Mon Sep 17 00:00:00 2001 From: Tingyu Meng <29924168887@qq.com> Date: Sun, 21 May 2023 15:59:43 +0800 Subject: [PATCH 4/6] =?UTF-8?q?mty.6.7.=E4=BC=AA=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- c6伪代码.md | 3 +++ c7伪代码.md | 4 ++++ 2 files changed, 7 insertions(+) create mode 100644 c6伪代码.md create mode 100644 c7伪代码.md diff --git a/c6伪代码.md b/c6伪代码.md new file mode 100644 index 0000000..6479ccb --- /dev/null +++ b/c6伪代码.md @@ -0,0 +1,3 @@ +step 1:利用for循环将相邻的两个姓名作比较 +step 2:如果前一个字符串大于后一个,利用for循环交换m门课程的成绩 +step 3:依次交换 \ No newline at end of file diff --git a/c7伪代码.md b/c7伪代码.md new file mode 100644 index 0000000..52a7d29 --- /dev/null +++ b/c7伪代码.md @@ -0,0 +1,4 @@ +Step 1:利用for循环给i赋值为0 +Step 2:利用if条件判断学号是否一致 +Step 3:利用二次循环找出所有符合条件的学生 +Step 4:利用if条件语句能否找到该学生 \ No newline at end of file From ab37e15ad6d28d04a9550240e0d0ef813bf1b7c2 Mon Sep 17 00:00:00 2001 From: Tingyu Meng <29924168887@qq.com> Date: Sun, 21 May 2023 16:24:35 +0800 Subject: [PATCH 5/6] =?UTF-8?q?mty5.=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 --- c5伪代码.md | 4 + mty5.drawio.svg | 371 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 375 insertions(+) create mode 100644 c5伪代码.md create mode 100644 mty5.drawio.svg diff --git a/c5伪代码.md b/c5伪代码.md new file mode 100644 index 0000000..fa5203c --- /dev/null +++ b/c5伪代码.md @@ -0,0 +1,4 @@ +Step 1:利用 for 循环给 i 赋值为0 +Step 2:利用 if 条件判断学号是否致 +Step 3:利用二次循环找出所有符合条件件的学 +Step 4:利用 i 件语句能否找到该学生 diff --git a/mty5.drawio.svg b/mty5.drawio.svg new file mode 100644 index 0000000..5f01818 --- /dev/null +++ b/mty5.drawio.svg @@ -0,0 +1,371 @@ + + + + + + + + + +
+
+
+ SearchbyNum +
+ (Integer n,Interger m) +
+
+
+
+ + SearchbyNum... + +
+
+ + + + + + + +
+
+
+ Integer number +
+
+
+
+ + Integer number + +
+
+ + + + + + + +
+
+
+ Integer i +
+
+
+
+ + Integer i + +
+
+ + + + + + + +
+
+
+ Integer j +
+
+
+
+ + Integer j + +
+
+ + + + + + +
+
+
+ Ouput Input the number +
+ you want to research +
+
+
+
+ + Ouput Input the number... + +
+
+ + + + + + +
+
+
+ i=Input %d +
+
+
+
+ + i=Input %d + +
+
+ + + + + + +
+
+
+ i=0 to n-1 +
+
+
+
+ + i=0 to n-1 + +
+
+ + + + + + + + +
+
+
+ stu[i].num == number +
+
+
+
+ + stu[i].num == number + +
+
+ + + + + + + + +
+
+
+ i == n +
+
+
+
+ + i == n + +
+
+ + + + + + +
+
+
+ Output \n +
+
+
+
+ + Output \n + +
+
+ + + + +
+
+
+ true +
+
+
+
+ + true + +
+
+ + + + + + + + +
+
+
+ j = 0 to m-1 +
+
+
+
+ + j = 0 to m-1 + +
+
+ + + + + + +
+
+
+ Output \n +
+
+
+
+ + Output \n + +
+
+ + + + +
+
+
+ done +
+
+
+
+ + done + +
+
+ + + + + + +
+
+
+ j = 0 to m-1 +
+
+
+
+ + j = 0 to m-1 + +
+
+ + + + + + + +
+
+
+ break +
+
+
+
+ + break + +
+
+ + + + + + +
+
+
+ output \inNot found!\n +
+
+
+
+ + output \inNot found!... + +
+
+ + + + + + + + +
+
+
+ End +
+
+
+
+ + End + +
+
+ + + + +
+ + + + + Text is not SVG - cannot display + + + +
\ No newline at end of file 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 6/6] =?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