#include <iostream>
#include<string>
using namespace std;
class Day {
private:
int birthday;
public:
Day(){}
Day(int inptbirthday){
birthday = inptbirthday;
}
int outbirth() {
return birthday;
}
};
class People :public Day{
private:
int number, id;
string sex;
public:
People(){
}
~People() {
cout<<"---------------"<<endl;
}
void input(int inumber,string isex, int iid,int ipbirth);
void output();
};
void People::input(int inumber,string isex,int iid,int ipbirth) {
number = inumber;
sex = isex;
id = iid;
}
void People::output(){
cout << "number \t sex \t id \t" <<"birthday"<< endl;
cout << number << "\t" << sex << "\t" << id << "\t"<<birth.outbirth()<<endl;
// ~~~~~~~~~~~~~~~~问题在这个地方
}
int main() {
People z3;
z3.input(1, "man", 233, 20020329);
z3.output();
return 0;
}