|
|
@ -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)
|
|
|
|
![](主函数流程图.drawio.svg)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|