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] =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E4=B8=BB=E6=B5=81=E7=A8=8B?= =?UTF-8?q?=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 // 菜单命令的编号 // 函数声明