From 8b4e4ad64f16e0616e96d0bc4d0890bb8b46029a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=8C=AF=E5=AE=87?= <1758159256@qq.com> Date: Sun, 21 May 2023 09:55:11 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E5=9B=BE=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- delete_data.drawio.svg | 127 +++++++++++++++++++++++++++++++++++++++++ make_data.drawio.svg | 87 ++++++++++++++++++++++++++++ sort_data.drawio.svg | 87 ++++++++++++++++++++++++++++ 3 files changed, 301 insertions(+) create mode 100644 delete_data.drawio.svg create mode 100644 make_data.drawio.svg create mode 100644 sort_data.drawio.svg diff --git a/delete_data.drawio.svg b/delete_data.drawio.svg new file mode 100644 index 0000000..35cab42 --- /dev/null +++ b/delete_data.drawio.svg @@ -0,0 +1,127 @@ + + + + + + + + + +
+
+
+ delete_data +
+
+
+
+ + delete_data + +
+
+ + + + + + +
+
+
+ 输入学生学号 +
+
+
+
+ + 输入学生学号 + +
+
+ + + + + + + + +
+
+
+ 是否查找成功 +
+
+
+
+ + 是否查找成功 + +
+
+ + + + + + +
+
+
+ 删除信息 +
+
+
+
+ + 删除信息 + +
+
+ + + + +
+
+
+ 结束 +
+
+
+
+ + 结束 + +
+
+ + + + + + +
+
+
+ 学生不存在 +
+
+
+
+ + 学生不存在 + +
+
+
+ + + + + Text is not SVG - cannot display + + + +
\ No newline at end of file diff --git a/make_data.drawio.svg b/make_data.drawio.svg new file mode 100644 index 0000000..fb4d010 --- /dev/null +++ b/make_data.drawio.svg @@ -0,0 +1,87 @@ + + + + + + + + + +
+
+
+ make_data +
+
+
+
+ + make_data + +
+
+ + + + + + +
+
+
+ 生成图表 +
+
+
+
+ + 生成图表 + +
+
+ + + + + + +
+
+
+ 用图表方式对库存学生成绩进行显示 +
+
+
+
+ + 用图表方式对库存学生成绩进行显示 + +
+
+ + + + +
+
+
+ 结束 +
+
+
+
+ + 结束 + +
+
+
+ + + + + Text is not SVG - cannot display + + + +
\ No newline at end of file diff --git a/sort_data.drawio.svg b/sort_data.drawio.svg new file mode 100644 index 0000000..472cc60 --- /dev/null +++ b/sort_data.drawio.svg @@ -0,0 +1,87 @@ + + + + + + + + + +
+
+
+ sort_data +
+
+
+
+ + sort_data + +
+
+ + + + + + +
+
+
+ 查找所有学生成绩 +
+
+
+
+ + 查找所有学生成绩 + +
+
+ + + + + + +
+
+
+ 对所有学生成绩按照学号进行从小到大的排序 +
+
+
+
+ + 对所有学生成绩按照学号进行从小到大的排序 + +
+
+ + + + +
+
+
+ 结束 +
+
+
+
+ + 结束 + +
+
+
+ + + + + Text is not SVG - cannot display + + + +
\ No newline at end of file From 0d49d7c6b0c6539163232ad5e0464f53e38e68c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=8C=AF=E5=AE=87?= <1758159256@qq.com> Date: Sun, 21 May 2023 09:55:34 +0800 Subject: [PATCH 2/5] =?UTF-8?q?=E5=9B=BE=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.drawio.svg | 321 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 321 insertions(+) create mode 100644 main.drawio.svg diff --git a/main.drawio.svg b/main.drawio.svg new file mode 100644 index 0000000..8338f43 --- /dev/null +++ b/main.drawio.svg @@ -0,0 +1,321 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ main +
+
+
+
+ + main + +
+
+ + + + +
+
+
+ display_menu +
+
+
+
+ + display_menu + +
+
+ + + + +
+
+
+ make_choice +
+
+
+
+ + make_choice + +
+
+ + + + +
+
+
+ confirm +
+
+
+
+ + confirm + +
+
+ + + + +
+
+
+ init +
+
+
+
+ + init + +
+
+ + + + +
+
+
+ read_data +
+
+
+
+ + read_data + +
+
+ + + + +
+
+
+ save_data +
+
+
+
+ + save_data + +
+
+ + + + +
+
+
+ print_data +
+
+
+
+ + print_data + +
+
+ + + + + + +
+
+
+ query_data +
+
+
+
+ + query_data + +
+
+ + + + + + +
+
+
+ add_data +
+
+
+
+ + add_data + +
+
+ + + + + + +
+
+
+ up_data +
+
+
+
+ + up_data + +
+
+ + + + + + +
+
+
+ delete_data +
+
+
+
+ + delete_data + +
+
+ + + + +
+
+
+ sort_data +
+
+
+
+ + sort_data + +
+
+ + + + +
+
+
+ make_data +
+
+
+
+ + make_data + +
+
+ + + + +
+
+
+ quit +
+
+
+
+ + quit + +
+
+ + + + +
+
+
+ find +
+
+
+
+ + find + +
+
+
+ + + + + Text is not SVG - cannot display + + + +
\ No newline at end of file From 3bfa1f5824a5b972470caf173ea2979596b71eb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=8C=AF=E5=AE=87?= <1758159256@qq.com> Date: Sun, 21 May 2023 10:41:28 +0800 Subject: [PATCH 3/5] =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E4=B8=BB=E6=B5=81?= =?UTF-8?q?=E7=A8=8B=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 学生成绩管理系统.cc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/学生成绩管理系统.cc b/学生成绩管理系统.cc index 6538439..c66165e 100644 --- a/学生成绩管理系统.cc +++ b/学生成绩管理系统.cc @@ -13,16 +13,16 @@ static int num_parts = 0; #include //定义常量 -#define CMD_QUIT 0 -#define CMD_QUERY 4 +#define CMD_QUIT 0 +#define CMD_READ 1 +#define CMD_SAVE 2 +#define CMD_PRINT 3 +#define CMD_QUERY 4 #define CMD_INSERT 5 #define CMD_UPDATE 6 #define CMD_DELETE 7 -#define CMD_READ 1 -#define CMD_SAVE 2 -#define CMD_PRINT 3 -#define CMD_SORT 8 -#define CMD_CHART 9 +#define CMD_SORT 8 +#define CMD_CHART 9 // 菜单命令的编号 // 函数声明 From e4f23561e45a6d027bb3a04a305da80f5a2dac9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=8C=AF=E5=AE=87?= <1758159256@qq.com> Date: Sun, 21 May 2023 10:42:38 +0800 Subject: [PATCH 4/5] 1 --- 主函数流程图.drawio.svg | 890 ++++++++++++++++++++++++++++++++++ 1 file changed, 890 insertions(+) create mode 100644 主函数流程图.drawio.svg diff --git a/主函数流程图.drawio.svg b/主函数流程图.drawio.svg new file mode 100644 index 0000000..80333a8 --- /dev/null +++ b/主函数流程图.drawio.svg @@ -0,0 +1,890 @@ + + + + + + + + + +
+
+
+ main +
+
+
+
+ + main + +
+
+ + + + + + + +
+
+
+ display_menu +
+
+
+
+ + display_menu + +
+
+ + + + + + + +
+
+
+ c=make_choice +
+
+
+
+ + c=make_choice + +
+
+ + + + + + + +
+
+
+ init +
+
+
+
+ + init + +
+
+ + + + + + + + +
+
+
+ c == CMD_READ +
+
+
+
+ + c == CMD_READ + +
+
+ + + + + + + + +
+
+
+ c == CMD_QUERY +
+
+
+
+ + c == CMD_QUERY + +
+
+ + + + + + + + +
+
+
+ c == CMD_INSERT +
+
+
+
+ + c == CMD_INSERT + +
+
+ + + + + + + + +
+
+
+ c == CMD_UPDATE +
+
+
+
+ + c == CMD_UPDATE + +
+
+ + + + + + + + +
+
+
+ c == CMD_CHART +
+
+
+
+ + c == CMD_CHART + +
+
+ + + + + + + + +
+
+
+ 确认退出 +
+
+
+
+ + 确认退出 + +
+
+ + + + + + + + +
+
+
+ c == CMD_SAVE +
+
+
+
+ + c == CMD_SAVE + +
+
+ + + + + + + + +
+
+
+ c == CMD_QUIT +
+
+
+
+ + c == CMD_QUIT + +
+
+ + + + + + + + +
+
+
+ c == CMD_PRINT +
+
+
+
+ + c == CMD_PRINT + +
+
+ + + + + + + + +
+
+
+ c == CMD_DELETE +
+
+
+
+ + c == CMD_DELETE + +
+
+ + + + + + + + +
+
+
+ c == CMD_SORT +
+
+
+
+ + c == CMD_SORT + +
+
+ + + + + + + +
+
+
+ quit +
+
+
+
+ + quit + +
+
+ + + + +
+
+
+ 结束 +
+
+
+
+ + 结束 + +
+
+ + + + +
+
+
+ N +
+
+
+
+ + N + +
+
+ + + + +
+
+
+ N +
+
+
+
+ + N + +
+
+ + + + +
+
+
+ N +
+
+
+
+ + N + +
+
+ + + + +
+
+
+ N +
+
+
+
+ + N + +
+
+ + + + +
+
+
+ N +
+
+
+
+ + N + +
+
+ + + + +
+
+
+ N +
+
+
+
+ + N + +
+
+ + + + +
+
+
+ N +
+
+
+
+ + N + +
+
+ + + + +
+
+
+ N +
+
+
+
+ + N + +
+
+ + + + +
+
+
+ N +
+
+
+
+ + N + +
+
+ + + + +
+
+
+ Y +
+
+
+
+ + Y + +
+
+ + + + + + +
+
+
+ read_data +
+
+
+
+ + read_data + +
+
+ + + + + + +
+
+
+ sort_data +
+
+
+
+ + sort_data + +
+
+ + + + + + +
+
+
+ print_data +
+
+
+
+ + print_data + +
+
+ + + + + + +
+
+
+ save_data +
+
+
+
+ + save_data + +
+
+ + + + + + +
+
+
+ query_data +
+
+
+
+ + query_data + +
+
+ + + + + + +
+
+
+ make_chart +
+
+
+
+ + make_chart + +
+
+ + + + + + +
+
+
+ add_data +
+
+
+
+ + add_data + +
+
+ + + + + + +
+
+
+ update_data +
+
+
+
+ + update_data + +
+
+ + + + + + +
+
+
+ delete_data +
+
+
+
+ + delete_data + +
+
+ + + + + + +
+
+
+ 命令错误,请重新输入 +
+
+
+
+ + 命令错误,请重新输入 + +
+
+ + + + +
+
+
+ Y +
+
+
+
+ + Y + +
+
+ + + + +
+
+
+ Y +
+
+
+
+ + Y + +
+
+ + + + +
+
+
+ Y +
+
+
+
+ + Y + +
+
+ + + + +
+
+
+ Y +
+
+
+
+ + Y + +
+
+ + + + +
+
+
+ Y +
+
+
+
+ + Y + +
+
+ + + + +
+
+
+ Y +
+
+
+
+ + Y + +
+
+ + + + +
+
+
+ Y +
+
+
+
+ + Y + +
+
+ + + + +
+
+
+ Y +
+
+
+
+ + Y + +
+
+ + + + +
+
+
+ Y +
+
+
+
+ + Y + +
+
+ + + + +
+
+
+ N +
+
+
+
+ + N + +
+
+
+ + + + + Text is not SVG - cannot display + + + +
\ No newline at end of file From e435e1cb48232190561cbc5aa47b2a34d7b069d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=8C=AF=E5=AE=87?= <1758159256@qq.com> Date: Sun, 21 May 2023 11:14:56 +0800 Subject: [PATCH 5/5] 1 --- make_data.drawio.svg => make_chart.drawio.svg | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename make_data.drawio.svg => make_chart.drawio.svg (100%) diff --git a/make_data.drawio.svg b/make_chart.drawio.svg similarity index 100% rename from make_data.drawio.svg rename to make_chart.drawio.svg