欢迎来到天天文库
浏览记录
ID:15038239
大小:51.00 KB
页数:22页
时间:2018-08-01
《除保存外的功能实现》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、除保存外的功能实现#include#include#includeusingnamespacestd;classcloth{protected:charcolor[10];charbrand[10];charsize[5];charsex;public:cloth(){}~cloth(){}voidprint(){cout<<"衣物的颜色为"<2、"<3、rtualpubliccloth{protected:staticintnumber;public:out(){number++;}~out(){}voidprint(){cout<<"衣物的颜色为"<4、00;classin:virtualpubliccloth{protected:staticintnumber;public:in(){number++;}~in(){}in*next;voidprint(){cout<<"衣物的颜色为"<5、number=2000;classtro:virtualpubliccloth{protected:staticintnumber;public:tro(){number++;}~tro(){}tro*next;voidprint(){cout<<"衣物的颜色为"<6、dl;}};inttro::number=3000;classtao:publicin,publicout,publictro{inin1;outout1;trotro1;staticintnumber;public:tao(){number++;}voidprint(){cout<<"衣物的颜色为"<7、衣物的编号为"<8、rcpy(size,in1.getsize());strcat(size,out1.getsize());strcat(size,tro1.getsize());}};inttao::number=4000;voidadd1(out*&f,out*&r,char*color1,char*brand1,char*size1,charsex1){out*p=newout;p->set(color1,brand1,size1,sex
2、"<3、rtualpubliccloth{protected:staticintnumber;public:out(){number++;}~out(){}voidprint(){cout<<"衣物的颜色为"<4、00;classin:virtualpubliccloth{protected:staticintnumber;public:in(){number++;}~in(){}in*next;voidprint(){cout<<"衣物的颜色为"<5、number=2000;classtro:virtualpubliccloth{protected:staticintnumber;public:tro(){number++;}~tro(){}tro*next;voidprint(){cout<<"衣物的颜色为"<6、dl;}};inttro::number=3000;classtao:publicin,publicout,publictro{inin1;outout1;trotro1;staticintnumber;public:tao(){number++;}voidprint(){cout<<"衣物的颜色为"<7、衣物的编号为"<8、rcpy(size,in1.getsize());strcat(size,out1.getsize());strcat(size,tro1.getsize());}};inttao::number=4000;voidadd1(out*&f,out*&r,char*color1,char*brand1,char*size1,charsex1){out*p=newout;p->set(color1,brand1,size1,sex
3、rtualpubliccloth{protected:staticintnumber;public:out(){number++;}~out(){}voidprint(){cout<<"衣物的颜色为"<4、00;classin:virtualpubliccloth{protected:staticintnumber;public:in(){number++;}~in(){}in*next;voidprint(){cout<<"衣物的颜色为"<5、number=2000;classtro:virtualpubliccloth{protected:staticintnumber;public:tro(){number++;}~tro(){}tro*next;voidprint(){cout<<"衣物的颜色为"<6、dl;}};inttro::number=3000;classtao:publicin,publicout,publictro{inin1;outout1;trotro1;staticintnumber;public:tao(){number++;}voidprint(){cout<<"衣物的颜色为"<7、衣物的编号为"<8、rcpy(size,in1.getsize());strcat(size,out1.getsize());strcat(size,tro1.getsize());}};inttao::number=4000;voidadd1(out*&f,out*&r,char*color1,char*brand1,char*size1,charsex1){out*p=newout;p->set(color1,brand1,size1,sex
4、00;classin:virtualpubliccloth{protected:staticintnumber;public:in(){number++;}~in(){}in*next;voidprint(){cout<<"衣物的颜色为"<5、number=2000;classtro:virtualpubliccloth{protected:staticintnumber;public:tro(){number++;}~tro(){}tro*next;voidprint(){cout<<"衣物的颜色为"<6、dl;}};inttro::number=3000;classtao:publicin,publicout,publictro{inin1;outout1;trotro1;staticintnumber;public:tao(){number++;}voidprint(){cout<<"衣物的颜色为"<7、衣物的编号为"<8、rcpy(size,in1.getsize());strcat(size,out1.getsize());strcat(size,tro1.getsize());}};inttao::number=4000;voidadd1(out*&f,out*&r,char*color1,char*brand1,char*size1,charsex1){out*p=newout;p->set(color1,brand1,size1,sex
5、number=2000;classtro:virtualpubliccloth{protected:staticintnumber;public:tro(){number++;}~tro(){}tro*next;voidprint(){cout<<"衣物的颜色为"<6、dl;}};inttro::number=3000;classtao:publicin,publicout,publictro{inin1;outout1;trotro1;staticintnumber;public:tao(){number++;}voidprint(){cout<<"衣物的颜色为"<7、衣物的编号为"<8、rcpy(size,in1.getsize());strcat(size,out1.getsize());strcat(size,tro1.getsize());}};inttao::number=4000;voidadd1(out*&f,out*&r,char*color1,char*brand1,char*size1,charsex1){out*p=newout;p->set(color1,brand1,size1,sex
6、dl;}};inttro::number=3000;classtao:publicin,publicout,publictro{inin1;outout1;trotro1;staticintnumber;public:tao(){number++;}voidprint(){cout<<"衣物的颜色为"<7、衣物的编号为"<8、rcpy(size,in1.getsize());strcat(size,out1.getsize());strcat(size,tro1.getsize());}};inttao::number=4000;voidadd1(out*&f,out*&r,char*color1,char*brand1,char*size1,charsex1){out*p=newout;p->set(color1,brand1,size1,sex
7、衣物的编号为"<8、rcpy(size,in1.getsize());strcat(size,out1.getsize());strcat(size,tro1.getsize());}};inttao::number=4000;voidadd1(out*&f,out*&r,char*color1,char*brand1,char*size1,charsex1){out*p=newout;p->set(color1,brand1,size1,sex
8、rcpy(size,in1.getsize());strcat(size,out1.getsize());strcat(size,tro1.getsize());}};inttao::number=4000;voidadd1(out*&f,out*&r,char*color1,char*brand1,char*size1,charsex1){out*p=newout;p->set(color1,brand1,size1,sex
此文档下载收益归作者所有