class Student
{
public:
Student(); //声明无参构造函数
Student(char * pname,char sex1,char * pid,int a,float s);
void getid(char * pid);
void getname(char * pname);
void getsex(char sex1){sex=sex1;}
void getage(int a){age=a;}
void getscore(float s){score=s;}
void display();
~Student();
private:
char * name;
char sex;
char * id;
int age;
float score;
};