这个人员类有什么问题 怎么解决
这个人员类有什么问题,该怎么解决#include<iostream>
using namespace std;
class Birthday
{
private:
int Year;
int Month;
int Day;
public:
Birthday(){};
Birthday(int y,int m,int d)
{Year=y;Month=m;Day=d;}
void Set(int y,int m,int d){Year=y;Month=m;Day=d;}
void Show(){Cout<<Year<<"-"<<Month<<"-"<<"Day;
};
Birthday::Birthday(Birthday &b)
{Year=b.Year;
Month=b.Month;
Day=b.Day;
}
class Person
{
private:
char number;
char sex;
charID[19];
int birthday;
public:
Person(){};
Person::Person(int n,int y,int m,int d,char s='m',char id[19]):birthday(y,m,d)
{number=n;
sex=m;
strpcy(ID,id);
}
~Person(){};
Person(Person &p)
{
number=p.number;
sex=p.sex;
birthday=p.birthday;
strpcy(ID,p.id);
}
void input();
void output();
};
void Person::input()
{cout<<"录入数据"<<endl;
cout<<"编号"<<endl;
cin>>number;
cout<<"性别"<<endl;
cin>>(m||f);
cout<<"生日"<<endl;
cout<<"身份证号"<<endl;
cin>>ID;
ID[18]='0';
}
void Person::output();
cout<<"编号"<<number;
cout<<"性别"<<sex;
cout<<"生日"<<birthday;
cout<<"身份证号"<<ID<<endl;
}
void main()
{ Person p1
p1.input();
p1.output();
return(0);
}