diff --git a/.vscode/extensions.json b/.vscode/extensions.json
index ca9e6a0..e69de29 100644
--- a/.vscode/extensions.json
+++ b/.vscode/extensions.json
@@ -1,5 +0,0 @@
-{
- "recommendations": [
- "hediet.vscode-drawio"
- ]
-}
\ No newline at end of file
diff --git a/README.md b/README.md
index 846c596..53c82fc 100644
--- a/README.md
+++ b/README.md
@@ -305,12 +305,83 @@ a: No such file or directory
## 详细设计
+各模块的主要功能如下:
+
#### main
-伪代码:
-```
+系统主函数模块,显示菜单,根据用户选择的菜单命令,执行相关操作。
+
+#### init
+
+系统初始化。
+
+#### display_menu
+
+显示菜单命令。
+
+## 详细设计
+
+针对概要设计
+
+#### 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_ADD 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_MAKE then 显示图表
+Step 2.12: if c == CMD_QUIT then 退出
-```
-流程图:

+
+#### save_data
+
+Step 1: 输入文件名
+Step 2: 打开文件
+Step 3: if 打开文件失败 then 提示打开文件失败并结束
+Step 4: 将所有库存记录写入文件
+Step 5: 关闭文件
+
+
+
+#### query_data
+
+Step 1: 输入学生学号
+Step 2: if学号不存在 then 提示学生不存在并结束
+Step 3: else 学号存在 then 输出学号、姓名、成绩
+
+
+
+#### read_data
+
+Step 1: 输入文件名
+Step 2: 打开文件
+Step 3: if 文件为空 then 结束
+Step 4: else 读取文件
+Step 5: 提示读取并记录
+
+
+
+#### make_chart
+
+Step 1: 读取文件
+Step 2: 显示图表
+
+
+
+
+#### confirm
+
+Step 1: 输出 确定要退出吗
+Step 2: if 确认 then 退出
+
+
\ No newline at end of file
diff --git a/pictures/confirm.drawio.svg b/pictures/confirm.drawio.svg
new file mode 100644
index 0000000..8dc9893
--- /dev/null
+++ b/pictures/confirm.drawio.svg
@@ -0,0 +1,90 @@
+
\ No newline at end of file
diff --git a/pictures/make_chart.drawio.svg b/pictures/make_chart.drawio.svg
new file mode 100644
index 0000000..43a66b3
--- /dev/null
+++ b/pictures/make_chart.drawio.svg
@@ -0,0 +1,71 @@
+
\ No newline at end of file
diff --git a/pictures/query_data.drawio.svg b/pictures/query_data.drawio.svg
new file mode 100644
index 0000000..fa4a66d
--- /dev/null
+++ b/pictures/query_data.drawio.svg
@@ -0,0 +1,143 @@
+
\ No newline at end of file
diff --git a/pictures/read.drawio.svg b/pictures/read.drawio.svg
new file mode 100644
index 0000000..1ef4a42
--- /dev/null
+++ b/pictures/read.drawio.svg
@@ -0,0 +1,144 @@
+
\ No newline at end of file
diff --git a/pictures/save_data.drawio.svg b/pictures/save_data.drawio.svg
new file mode 100644
index 0000000..47de788
--- /dev/null
+++ b/pictures/save_data.drawio.svg
@@ -0,0 +1,163 @@
+
\ No newline at end of file