项目场景 创建学生类,在通过构造函数创建对象后,编译器(vs2019)报错 #include <iostream> using namespace std; class S { private: int m_id; char* m_name; public: S(