From a6b1069994256f685268409bd0baf87ef07ddf03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E8=81=AA=E9=A2=96?= <3139769854@qq.com> Date: Sun, 21 May 2023 11:14:25 +0800 Subject: [PATCH 1/4] OKKK --- .vscode/tasks.json | 28 ++ graph/increase_count.drawio.svg | 120 +++++ graph/insert.drawio.svg | 102 ++++ graph/main.drawio.svg | 848 ++++++++++++++++++++++++++++++++ 4 files changed, 1098 insertions(+) create mode 100644 .vscode/tasks.json create mode 100644 graph/increase_count.drawio.svg create mode 100644 graph/insert.drawio.svg create mode 100644 graph/main.drawio.svg diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..88884e8 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,28 @@ +{ + "tasks": [ + { + "type": "cppbuild", + "label": "C/C++: gcc.exe build active file", + "command": "C:\\mingw64\\mingw64\\bin\\gcc.exe", + "args": [ + "-fdiagnostics-color=always", + "-g", + "${file}", + "-o", + "${fileDirname}\\${fileBasenameNoExtension}.exe" + ], + "options": { + "cwd": "${fileDirname}" + }, + "problemMatcher": [ + "$gcc" + ], + "group": { + "kind": "build", + "isDefault": true + }, + "detail": "Task generated by Debugger." + } + ], + "version": "2.0.0" +} \ No newline at end of file diff --git a/graph/increase_count.drawio.svg b/graph/increase_count.drawio.svg new file mode 100644 index 0000000..2b61434 --- /dev/null +++ b/graph/increase_count.drawio.svg @@ -0,0 +1,120 @@ + + + + + + + +
+
+
+ 修改模块 +
+
+
+
+ + 修改模块 + +
+
+ + + + + +
+
+
+ 判断指针并返回信息 +
+
+
+
+ + 判断指针并返回信息 + +
+
+ + + + + +
+
+
+ 定义数组用于id比对 +
+
+
+
+ + 定义数组用于id比对 + +
+
+ + + + + +
+
+
+ 输入id进行比对 +
+
+
+
+ + 输入id进行比对 + +
+
+ + + + + + +
+
+
+ 若没有则返回信息 +
+
+
+
+ + 若没有则返回信息 + +
+
+ + + + +
+
+
+ 若有则通过链表修改信息 +
+
+
+
+ + 若有则通过链表修改信息 + +
+
+
+ + + + + Viewer does not support full SVG 1.1 + + + +
\ No newline at end of file diff --git a/graph/insert.drawio.svg b/graph/insert.drawio.svg new file mode 100644 index 0000000..3648733 --- /dev/null +++ b/graph/insert.drawio.svg @@ -0,0 +1,102 @@ + + + + + + + +
+
+
+ 添加模块 +
+
+
+
+ + 添加模块 + +
+
+ + + + +
+
+
+ 判断链表是否存在 +
+
+
+
+ + 判断链表是否存在 + +
+
+ + + + + + +
+
+
+ 不存在返回error +
+
+
+
+ + 不存在返回error + +
+
+ + + + + +
+
+
+ 存在则头插法输入数据 +
+
+
+
+ + 存在则头插法输入数据 + +
+
+ + + + + +
+
+
+ 输入结束返回ok +
+
+
+
+ + 输入结束返回ok + +
+
+
+ + + + + Viewer does not support full SVG 1.1 + + + +
\ No newline at end of file diff --git a/graph/main.drawio.svg b/graph/main.drawio.svg new file mode 100644 index 0000000..511f7f2 --- /dev/null +++ b/graph/main.drawio.svg @@ -0,0 +1,848 @@ + + + + + + + + + +
+
+
+ main +
+
+
+
+ + main + +
+
+ + + + + + + + +
+
+
+ init +
+
+
+
+ + init + +
+
+ + + + + + + +
+
+
+ display_menu +
+
+
+
+ + display_menu + +
+
+ + + + + + + +
+
+
+ c = make_choice +
+
+
+
+ + c = make_choice + +
+
+ + + + + +
+
+
+ Y +
+
+
+
+ + Y + +
+
+ + + + +
+
+
+ c == 1 +
+
+
+
+ + c == 1 + +
+
+ + + + + + + +
+
+
+ read_data +
+
+
+
+ + read_data + +
+
+ + + + + + + +
+
+
+ Y +
+
+
+
+ + Y + +
+
+ + + + +
+
+
+ c == 2 +
+
+
+
+ + c == 2 + +
+
+ + + + + + + +
+
+
+ savedata +
+
+
+
+ + savedata + +
+
+ + + + + + + +
+
+
+ Y +
+
+
+
+ + Y + +
+
+ + + + +
+
+
+ c == 3 +
+
+
+
+ + c == 3 + +
+
+ + + + + + + +
+
+
+
+ show_goods +
+
+
+
+
+ + show_goods + +
+
+ + + + + + + +
+
+
+ Y +
+
+
+
+ + Y + +
+
+ + + + +
+
+
+ c == 4 +
+
+
+
+ + c == 4 + +
+
+ + + + + + + +
+
+
+
+ + find_goods + +
+
+
+
+
+ + find_goods + +
+
+ + + + + + + +
+
+
+ Y +
+
+
+
+ + Y + +
+
+ + + + +
+
+
+ c == 5 +
+
+
+
+ + c == 5 + +
+
+ + + + + + + +
+
+
+
+ insert +
+
+
+
+
+ + insert + +
+
+ + + + + + + +
+
+
+ Y +
+
+
+
+ + Y + +
+
+ + + + +
+
+
+ c == 6 +
+
+
+
+ + c == 6 + +
+
+ + + + + + + +
+
+
+
+ increase_count +
+
+
+
+
+ + increase_count + +
+
+ + + + + + + +
+
+
+ Y +
+
+
+
+ + Y + +
+
+ + + + +
+
+
+ c == 7 +
+
+
+
+ + c == 7 + +
+
+ + + + + + + +
+
+
+
+ delete_from_list +
+
+
+
+
+ + delete_from_list + +
+
+ + + + + + + +
+
+
+ Y +
+
+
+
+ + Y + +
+
+ + + + +
+
+
+ c == 8 +
+
+
+
+ + c == 8 + +
+
+ + + + + + + +
+
+
+
+ sort +
+
+
+
+
+ + sort + +
+
+ + + + + + + + + + +
+
+
+ c == CMD_QUIT +
+
+
+
+ + c == CMD_QUIT + +
+
+ + + + + + + +
+
+
+ quit +
+
+
+
+ + quit + +
+
+ + + + + + + + +
+
+
+ 确定退出 +
+
+
+
+ + 确定退出 + +
+
+ + + + + + +
+
+
+ 命令错误,请重新选择 +
+
+
+
+ + 命令错误,请重新选择 + +
+
+ + + + +
+
+
+ N +
+
+
+
+ + N + +
+
+ + + + +
+
+
+ N +
+
+
+
+ + N + +
+
+ + + + +
+
+
+ N +
+
+
+
+ + N + +
+
+ + + + +
+
+
+ N +
+
+
+
+ + N + +
+
+ + + + +
+
+
+ N +
+
+
+
+ + N + +
+
+ + + + +
+
+
+ N +
+
+
+
+ + N + +
+
+ + + + +
+
+
+ N +
+
+
+
+ + N + +
+
+ + + + +
+
+
+ N +
+
+
+
+ + N + +
+
+ + + + +
+
+
+ N +
+
+
+
+ + N + +
+
+ + + + +
+
+
+ N +
+
+
+
+ + N + +
+
+ + + + +
+
+
+ Y +
+
+
+
+ + Y + +
+
+ + + + +
+
+
+ N +
+
+
+
+ + N + +
+
+
+ + + + + Viewer does not support full SVG 1.1 + + + +
\ No newline at end of file From 5ec1e4b9c9fe1a9d311787431a0580e02b47da38 Mon Sep 17 00:00:00 2001 From: yangtengze Date: Sun, 21 May 2023 11:16:45 +0800 Subject: [PATCH 2/4] tubiao --- graph/readData.drawio.svg | 102 +++++++++++++++++++++++++ graph/saveData.drawio.svg | 152 +++++++++++++++++++++++++++++++++++++ graph/save_data.drawio.svg | 0 3 files changed, 254 insertions(+) create mode 100644 graph/readData.drawio.svg create mode 100644 graph/saveData.drawio.svg create mode 100644 graph/save_data.drawio.svg diff --git a/graph/readData.drawio.svg b/graph/readData.drawio.svg new file mode 100644 index 0000000..b6de3dd --- /dev/null +++ b/graph/readData.drawio.svg @@ -0,0 +1,102 @@ + + + + + + + +
+
+
+ 读取文件 +
+
+
+
+ + 读取文件 + +
+
+ + + + + +
+
+
+ 判断头指针 +
+
+
+
+ + 判断头指针 + +
+
+ + + + + +
+
+
+ 为空返回error +
+
+
+
+ + 为空返回error + +
+
+ + + + + +
+
+
+ 不为空文件指针指向文件 并打开 +
+
+
+
+ + 不为空文件指针指向文件 并打开 + +
+
+ + + + + +
+
+
+ 若文件内没有数据返回无信息 +
+
+
+
+ + 若文件内没有数据返回无信息 + +
+
+
+ + + + + Viewer does not support full SVG 1.1 + + + +
\ No newline at end of file diff --git a/graph/saveData.drawio.svg b/graph/saveData.drawio.svg new file mode 100644 index 0000000..0af3f30 --- /dev/null +++ b/graph/saveData.drawio.svg @@ -0,0 +1,152 @@ + + + + + + + + + +
+
+
+ save_data +
+
+
+
+ + save_data + +
+
+ + + + + + +
+
+
+ 输入文件名 +
+
+
+
+ + 输入文件名 + +
+
+ + + + + + +
+
+
+ 打开文件 +
+
+
+
+ + 打开文件 + +
+
+ + + + + + + + +
+
+
+ 打开文件成功? +
+
+
+
+ + 打开文件成功? + +
+
+ + + + + + +
+
+
+ 把所有库存记录 +
+ 写入文件 +
+
+
+
+ + 把所有库存记录 +写入文件 + +
+
+ + + + + + +
+
+
+ 关闭文件 +
+
+
+
+ + 关闭文件 + +
+
+ + + + + + + +
+
+
+ 提示打开文件失败 +
+
+
+
+ + 提示打开文件失败 + +
+
+
+ + + + + Viewer does not support full SVG 1.1 + + + +
\ No newline at end of file diff --git a/graph/save_data.drawio.svg b/graph/save_data.drawio.svg new file mode 100644 index 0000000..e69de29 From 08b0a3635befb06a4bd9f6898601dcde3c255858 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E8=8B=B1=E7=9A=93?= <3462354569@qq.com> Date: Sun, 21 May 2023 11:20:18 +0800 Subject: [PATCH 3/4] . --- graph/Show.drawio.svg | 66 +++++++++++++++++++++++ graph/show_goods.drawio.svg | 102 ++++++++++++++++++++++++++++++++++++ graph/sort.drawio.svg | 66 +++++++++++++++++++++++ 3 files changed, 234 insertions(+) create mode 100644 graph/Show.drawio.svg create mode 100644 graph/show_goods.drawio.svg create mode 100644 graph/sort.drawio.svg diff --git a/graph/Show.drawio.svg b/graph/Show.drawio.svg new file mode 100644 index 0000000..512a24f --- /dev/null +++ b/graph/Show.drawio.svg @@ -0,0 +1,66 @@ + + + + + + + +
+
+
+ 图表模块 +
+
+
+
+ + 图表模块 + +
+
+ + + + + +
+
+
+ 打印一个图表格式 +
+
+
+
+ + 打印一个图表格式 + +
+
+ + + + + +
+
+
+ 调用打印函数 +
+
+
+
+ + 调用打印函数 + +
+
+
+ + + + + Viewer does not support full SVG 1.1 + + + +
\ No newline at end of file diff --git a/graph/show_goods.drawio.svg b/graph/show_goods.drawio.svg new file mode 100644 index 0000000..47b0ea3 --- /dev/null +++ b/graph/show_goods.drawio.svg @@ -0,0 +1,102 @@ + + + + + + + +
+
+
+ 打印模块 +
+
+
+
+ + 打印模块 + +
+
+ + + + + +
+
+
+ 判断头指针 +
+
+
+
+ + 判断头指针 + +
+
+ + + + + +
+
+
+ 为空返回错误信息 +
+
+
+
+ + 为空返回错误信息 + +
+
+ + + + + +
+
+
+ 不为空定义指针变量 +
+
+
+
+ + 不为空定义指针变量 + +
+
+ + + + + +
+
+
+ 打印商品信息 +
+
+
+
+ + 打印商品信息 + +
+
+
+ + + + + Viewer does not support full SVG 1.1 + + + +
\ No newline at end of file diff --git a/graph/sort.drawio.svg b/graph/sort.drawio.svg new file mode 100644 index 0000000..6370643 --- /dev/null +++ b/graph/sort.drawio.svg @@ -0,0 +1,66 @@ + + + + + + + +
+
+
+ 排序模块 +
+
+
+
+ + 排序模块 + +
+
+ + + + + +
+
+
+ 链表的冒泡排序 +
+
+
+
+ + 链表的冒泡排序 + +
+
+ + + + + +
+
+
+ 定义前后指针对物品id进行从小到大的排序 +
+
+
+
+ + 定义前后指针对物品id进行从小到大的排序 + +
+
+
+ + + + + Viewer does not support full SVG 1.1 + + + +
\ No newline at end of file From 0fbc196bf74a403e36075895aed7acd2db8e25f7 Mon Sep 17 00:00:00 2001 From: yangtengze Date: Sun, 21 May 2023 11:22:37 +0800 Subject: [PATCH 4/4] change --- graph/a | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 graph/a diff --git a/graph/a b/graph/a deleted file mode 100644 index e69de29..0000000