Student()
{}
Student(string _name)
{
m_strName = _name;
}
Student(const Student& stu)
{
m_strName = stu.m_strName;
}
~Student()
{}
这样就行, 其他的用默认的就行了
{}
Student(string _name)
{
m_strName = _name;
}
Student(const Student& stu)
{
m_strName = stu.m_strName;
}
~Student()
{}
这样就行, 其他的用默认的就行了
cout << str->getName();
不能写成
cout << str->getName() << endl;
不能写成
cout << str->getName() << endl;