这行代码错在哪里,求解?
class Student
{
public:
void setName(string_name)
{
m_strName=_name;
}
string getName()
{
return m_strName;
}
void setGender(string_gender)
{
m_strGender=_gender;
}
string getGender()
{
return m_strGender;
}
int getScore(int)
{
return m_strScore;
}
void initScore()
{
m_iSccore=0;
}
void study(int _score)
{
m_iScore+=_score;
}
private:
string m_strName;
string m_strGender;
int m_strScore;
};
int main(void)
{
Student stu;
stu.initScore ();
stu.setGender("女") ;
stu.setName ("zhangsan");
stu.study (5);
stu.study (3);
cout<<stu.getName<<" "<<stu.getGender<<" "<<stu.getScore<<endl;
system("pause");
return 0;
}