diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000000000000000000000000000000000000..51c54c42826adf7cbbee5787ec863a44a0569962 --- /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 ead9e7d70d418b8f06ee5cc49940e29fac0b36cb..84d0e7555e7eb30f696be816edf87109505bae62 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;