From e7a37c152964cb66fece334ccefdb2b382852573 Mon Sep 17 00:00:00 2001 From: p2i3t8vuh <3020727885@qq.com> Date: Sun, 21 May 2023 16:22:33 +0800 Subject: [PATCH] Update README.md --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index 31fbb4c..6c2d0aa 100644 --- a/README.md +++ b/README.md @@ -207,6 +207,21 @@ a: No such file or directory 显示菜单命令。 #### 详细设计 +####main +Step 1: 初始化 +Step 2: 根据用户选择的命令执行对应的操作 +Step 2.1: 显示菜单 +Step 2.2: 选择菜单命令 c +Step 2.3: if c == CMD_READ then 读取数据 +Step 2.4: if c == CMD_SAVE then 保存数据 +Step 2.5: if c == CMD_PRINT then 打印数据 +Step 2.6: if c == CMD_QUERY then 查询数据 +Step 2.7: if c == CMD_INSERT then 添加数据 +Step 2.8: if c == CMD_UPDATE then 修改数据 +Step 2.9: if c == CMD_DELETE then 删除数据 +Step 2.10: if c == CMD_SORT then 数据排序 +Step 2.11: if c == CMD_CHART then 导出图表 +Step 2.12: if c == CMD_QUIT then 退出程序 ![](主函数流程图.drawio.svg)