哪位帮帮我
#include<iostream.h>
#include<string.h>
class people
{
public:
char getname(char *name)
{
//strcpy(m_name,name);
return m_name;
};
char getsex(char *sex)
{
//strcpy(m_sex,sex);
return m_sex;
};
int getage(int age)
{
m_age=age;
return m_age;
};
private:
char m_name;
char m_sex;
int m_age;
};
class student:public people
{
public:
void get(){};
int getnum(int num)
{
m_num=num;
return m_num;
};
private:
int m_num;
};
void main()
{
student a;
cout<<a.getnum(0045)<<endl;
cout<<a.getname("张伟")<<endl;
cout<<a.getsex("男")<<endl;
cout<<a.getage(18)<<endl;
}
生成目标文件没有错误,但生成可执行文件是就有一个错误了。苦啊!!!!!!