From 06cc95875601983d386d9c9b00db05d3f7190ce0 Mon Sep 17 00:00:00 2001 From: JYJSXX Date: Sun, 1 Sep 2024 20:33:00 +0800 Subject: [PATCH] 1 --- .vscode/launch.json | 16 ++++++++++++++++ include/Student.hpp | 1 + 2 files changed, 17 insertions(+) create mode 100644 .vscode/launch.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..51c54c4 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,16 @@ +{ + // 使用 IntelliSense 了解相关属性。 + // 悬停以查看现有属性的描述。 + // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "type": "lldb", + "request": "launch", + "name": "Debug", + "program": "${workspaceFolder}/", + "args": [], + "cwd": "${workspaceFolder}" + } + ] +} \ No newline at end of file diff --git a/include/Student.hpp b/include/Student.hpp index ead9e7d..84d0e75 100644 --- a/include/Student.hpp +++ b/include/Student.hpp @@ -8,6 +8,7 @@ private: /* data */ std::string school_; public: + Student() = delete; explicit Student(int age, const std::string name = "", const std::string school = "") : Human(age, name), school_(school) {}; virtual ~Student() override; virtual void print() const override; -- GitLab