From e6f73d8a19cc7fb77d8761d54d3d254394731e3a Mon Sep 17 00:00:00 2001 From: yangtengze Date: Sun, 23 Apr 2023 21:33:44 +0800 Subject: [PATCH 1/4] change --- data.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data.h b/data.h index 9ae1c5b..bb0eb95 100644 --- a/data.h +++ b/data.h @@ -86,7 +86,7 @@ template void DoAddBook() { if (books.length == MAXSIZE) { - cout << "books full" << endl;exit(DoAddBook);} + cout << "books full" << endl;} cout << endl << "Add Book"<< endl< Date: Sun, 23 Apr 2023 21:39:50 +0800 Subject: [PATCH 2/4] 1 --- .vscode/tasks.json | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 .vscode/tasks.json diff --git a/.vscode/tasks.json b/.vscode/tasks.json deleted file mode 100644 index 7e6453f..0000000 --- a/.vscode/tasks.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "tasks": [ - { - "type": "cppbuild", - "label": "C/C++: g++.exe build active file", - "command": "D:\\mingw64\\bin\\g++.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 From c5e0b57e6631e220f67e8cc1ff5923bdd844f84e Mon Sep 17 00:00:00 2001 From: yangtengze Date: Sun, 23 Apr 2023 21:40:11 +0800 Subject: [PATCH 3/4] 1 --- .vscode/tasks.json | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .vscode/tasks.json diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..ccfcfb2 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,28 @@ +{ + "tasks": [ + { + "type": "cppbuild", + "label": "C/C++: g++.exe build active file", + "command": "C:\\mingw64\\bin\\g++.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 From 5f16e3da28bdf0b8e33887cdf18f81d354ccf13d Mon Sep 17 00:00:00 2001 From: yangtengze Date: Mon, 24 Apr 2023 12:58:42 +0800 Subject: [PATCH 4/4] 1 --- data.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/data.h b/data.h index bb0eb95..f05e2a5 100644 --- a/data.h +++ b/data.h @@ -82,11 +82,8 @@ bool bookempty() } // 添加图书 -template void DoAddBook() { - if (books.length == MAXSIZE) { - cout << "books full" << endl;} cout << endl << "Add Book"<< endl<