欢迎来到天天文库
浏览记录
ID:47616265
大小:4.48 MB
页数:14页
时间:2019-10-10
《04737C++程序设计2017年04月份历年真题1-问题详解》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、实用标准文档大全实用标准文档大全实用标准文档大全实用标准文档大全实用标准文档大全实用标准文档大全实用标准文档大全实用标准switch语句,找到第一个满足的case之后,如果没有break,会继续执行后面的case语句.doubleoperator()(doublex,doubley)const;文档大全实用标准文档大全实用标准文档大全实用标准文档大全实用标准#include#includeusingnamespacestd;classBirthday{文档大全实用标准public:Birthd
2、ay(inty,intm,intd);Show();private:intyear;intmonth;intday;};Birthday::Birthday(inty,intm,intd){year=y;month=m;day=d;}Birthday::Show(){cout<3、;stringsex;Birthday*birthday;};Person::Person(stringn,strings,inty,intm,intd){name=n;sex=s;birthday=newBirthday(y,m,d);}Person::~Person(){if(birthday!=NULL){deletebirthday;birthday=NULL;}}Person::Show(){cout<<"姓名:"<4、用标准birthday->Show();}voidmain(){Person*p=newPerson("张三","女",2000,10,13);p->Show();deletep;}文档大全
3、;stringsex;Birthday*birthday;};Person::Person(stringn,strings,inty,intm,intd){name=n;sex=s;birthday=newBirthday(y,m,d);}Person::~Person(){if(birthday!=NULL){deletebirthday;birthday=NULL;}}Person::Show(){cout<<"姓名:"<4、用标准birthday->Show();}voidmain(){Person*p=newPerson("张三","女",2000,10,13);p->Show();deletep;}文档大全
4、用标准birthday->Show();}voidmain(){Person*p=newPerson("张三","女",2000,10,13);p->Show();deletep;}文档大全
此文档下载收益归作者所有