- 24
- 0
- 约1.66万字
- 约 61页
- 2018-06-21 发布于湖北
- 举报
DataBase类 Author,title,year Disp,构造函数 Painting类 Width,height Disp,构造函数 Music类 key Disp,构造函数 class DataBase { protected: char author[10];//作者 char title[20];//名字 int year;//年份 public: DataBase(char *author,char title[],int year) { strcpy(this-author,author); strcpy(this-title,title); this-year=year; } virtual void disp(); }; void DataBase::disp() { cout 作者:this-authorendl; cout 名字:this-titleendl; cout 年份:this-yearendl; } class Painting:public DataBase { private: int height,width; public: Painting(char *author,char *title,int year,int width,int height):DataBase(author,title,
您可能关注的文档
- 第6节 利用数组处理批量数据-32学时.pptx
- 第7节 网络科学与策略机制进化博弈论_226102505.pptx
- 第8_9节项目进度管理成本管理.pptx
- 第八节 食品商品.pptx
- 第八节 学习迁移.pptx
- 第9章 古代的文字和文学(川教版).pptx
- 第二节 注册会计师管理.pptx
- 第二节 票据.pptx
- 第二章 高频放大器.pptx
- 第九节教学(下)171121.pptx
- T∕QGCML 3144-2024 市场化科普工作规范.docx
- T∕QGCML 3157-2024 智能型水产投料轨道车.docx
- T∕QGCML 3164-2024 表面处理污泥水热制备聚硫铁晶体.docx
- T∕QGCML 3138-2024 可燃气体与有毒气体报警器主板控制软件.docx
- T∕QGCML 3075-2024 井下钻探技术在特厚煤层中精准探测技术规程.docx
- T∕QGCML 3139-2024 基于STM32天然气煤气检测报警系统.docx
- T∕QGCML 3079-2024 煤矿预防工伤事故服务管理规范.docx
- T∕QGCML 3086-2024 综采工作面过超高空巷高水充填技术规程.docx
- T∕QGCML 3061-2024 远程费控电能表.docx
- T∕QGCML 3131-2024 便携式大气颗粒物智能检测分析仪.docx
原创力文档

文档评论(0)