无码av一区二区三区无码,在线观看老湿视频福利,日韩经典三级片,成 人色 网 站 欧美大片在线观看

歡迎光臨散文網(wǎng) 會(huì)員登陸 & 注冊(cè)

666

2023-03-23 20:21 作者:bili_49463418430  | 我要投稿

#include<iostream>

using namespace std;

class date {private:

int year,month,day;

public:

date(){

year=2004;

month=4;

day=6;

}

date(const date&d){

year=d.year;

month=d.month;

day=d.day;

}

~date(){}

void setdate(){

cout<<"please enter year month day:\n";

cin>>year>>month>>day;}

??

void alterdate(int x=0,int y=0,int z=0){

year=x;

month=y;

day=z;

}

void display(){

cout<<"birthday:"<<year<<"yrar"<<month<<"month"<<day<<"day\n";

}?

};

class people{

private:

int num;

string sex;

date birthday;

string ID;

public:

people(date b):birthday(b){

? ? ? ? int n=0;

? ? ? ? string sx,I;

? ? ? ? num = n;sex = sx;ID = I;

}

people(const people& p):birthday(p.birthday){num=p.num; sex =p.sex; ID=p.ID;

}

~people(){};??

void? setpeople();??

void display();

};??

void people::setpeople()? {

int n;string d;date a;string I;a.setdate();

cout<<"please enter num\n";

cin>>n;

cout<<"please enter sex"<<endl;

cin>>d;

cout<<"pleaseenter ID"<<endl;

cin>>I;

birthday=a;

num=n;

sex=d;

ID=I;

}? ? ??

inline void people::display() {

cout<<endl;

cout<<"num:\n"<<num<<endl<<"sex:"<<sex<<endl<<"ID:\n"<<ID<<endl;birthday.display();

}

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?

int main () {

date b;

people p(b);

p.setpeople();

p.display();

people q(p);

return 0;

}


666的評(píng)論 (共 條)

分享到微博請(qǐng)遵守國(guó)家法律
遂昌县| 临夏县| 峨山| 开原市| 吉安市| 旌德县| 潜山县| 池州市| 巴马| 钦州市| 余干县| 诏安县| 佳木斯市| 泽州县| 吉木乃县| 会宁县| 六盘水市| 彭泽县| 东光县| 西宁市| 淮滨县| 开原市| 罗山县| 龙州县| 六安市| 轮台县| 鹿邑县| 望都县| 洪雅县| 绥滨县| 双柏县| 温州市| 云南省| 施秉县| 阜新市| 雷州市| 呼和浩特市| 宁海县| 巍山| 彩票| 舒城县|