- 1、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
除保存外功能实现
除保存外的功能实现 #include iostream #includecstring #includefstream using namespace std; class cloth{ protected: char color[10]; char brand[10]; char size[5]; char sex; public: cloth() {} ~cloth(){} void print() { cout衣物的颜色为colorendl; cout衣物的商标为brandendl; cout衣物的型号为sizeendl; cout衣物的适合性别为sexendl; } char * getcolor() { return color; } char * getbrand() { return brand; } char * getsize() { return size; } char getsex() { return sex; } void set(char *a,char *b,char *c,char d) {sex=d; strcpy(color,a); strcpy(brand,b); strcpy(size,c); }}; class out:virtual public cloth { protected: static int number; public: out(){number++;} ~out(){} void print() { cout衣物的颜色为colorendl; cout衣物的商标为brandendl; cout衣物的型号为sizeendl; cout衣物的适合性别为sexendl; cout衣物的编号为numberendl; } out*next; }; int out::number=1000; class in:virtual public cloth { protected: static int number; public: in(){number++;} ~in(){} in*next; void print() { cout衣物的颜色为colorendl; cout衣物的商标为brandendl; cout衣物的型号为sizeendl; cout衣物的适合性别为sexendl; cout衣物的编号为numberendl; } }; int in::number=2000; class tro:virtual public cloth { protected: static int number; public: tro(){number++;} ~tro(){} tro*next; void print() { cout衣物的颜色为colorendl; cout衣物的商标为brandendl; cout衣物的型号为sizeendl; cout衣物的适合性别为sexendl; cout衣物的编号为numberendl; } }; int tro::number=3000; class tao: public in,public out,public tro {in in1; out out1; tro tro1; static int number; public: tao() {number++;} void print() { cout衣物的颜色为colorendl; cout衣物的商标为brandendl; cout衣物的型号为sizeendl; cout衣物的适合性别为sexendl; cout衣物的编号为numberendl; } tao*next; void set(in t,out d,tro u) {in1=t; out1=d; tro1=u; strcpy(color,in1.getcolor()); strcat(color,out1.getcolor()); strcat(color,tro1.getcolor()); strcpy(brand,in1.getbrand()); strcat(brand,out1.getbrand()); strcat(brand,tro1.getbrand()); strcpy(size,in1.getsize()); strcat(size,out1.getsize()); strcat(size,tro1.getsize()); } }; int tao::n
您可能关注的文档
最近下载
- 大学生职业规划大赛《临床医学专业》生涯发展展示PPT.pptx
- 一次性医用金边蚂蟥净化养殖技术规程.docx VIP
- 公司战略与风险管理 课件第4章 战略实施与控制.pptx
- 电子烟检测技术规程.pdf VIP
- Python程序设计 课件 第6章 判断结构.pptx
- [宜宾]2024年四川宜宾工业职业技术学院(筹)招聘员额制工作人员5人笔试历年参考题库附带答案详解.docx
- 【精编版】中国创新药械多元支付白皮书2025.pdf VIP
- 产科常用药物知识培训.pptx VIP
- GB 50487-2008 水利水电工程地质勘察规范 (2022年版) .docx VIP
- 【低空经济】低空经济教学课程设计方案.docx
有哪些信誉好的足球投注网站
文档评论(0)