无情萝莉

文章
5
资源
0
加入时间
3年1月29天

C++注意防止指针指向空

例子static size_t sn;class Employee{private: //std::string name; std::shared_ptr<std::string>name; size_t ID = ++sn; //每次生成唯一IDpublic: Employee() = default; //默认构造函数 Employee(cons