最美情侣中文字幕电影,在线麻豆精品传媒,在线网站高清黄,久久黄色视频

歡迎光臨散文網(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ó)家法律
霍山县| 安徽省| 雷州市| 镇远县| 丹棱县| 福贡县| 鲁甸县| 井陉县| 罗山县| 秦皇岛市| 鲁甸县| 海原县| 南乐县| 玉屏| 金乡县| 古交市| 阿拉善左旗| 尉犁县| 荥阳市| 吴堡县| 象山县| 普格县| 澳门| 乐亭县| 盐城市| 高陵县| 常熟市| 宣恩县| 彝良县| 梅州市| 那曲县| 同江市| 郯城县| 伊春市| 青阳县| 晋江市| 泗水县| 环江| 义乌市| 芜湖市| 拉孜县|