宠物小屋(c++)

上传者: u010036069 | 上传时间: 2021-07-12 16:09:43 | 文件大小: 748KB | 文件类型: ZIP
Anne的宠物小屋有12个笼子,每个笼子可以放不同的动物,但只能放1只或0只,包括:猫Cat、狗Dog、蛇Snake。 要求: 1)实现一个简单的管理系统,可增加、删除笼子中的宠物,查询每个笼子中存放的宠物类型(包括笼子为空的情况),统计笼中宠物的种类和数量。 2) 定义描述宠物小屋的类shelves,其中有12笼子用于存放各种宠物。 3)定义虚拟基类Animal,包括纯虚函数ShowMe,显示每个宠物的情况,包括类型、颜色、体重和喜爱的食物。 4)定义派生类Cat、Dog、Snake具体实现上述纯虚函数。

文件下载

资源详情

[{"title":"( 28 个子文件 748KB ) 宠物小屋(c++)","children":[{"title":"宠物小屋","children":[{"title":"宠物小屋.sln <span style='color:#111;'> 901B </span>","children":null,"spread":false},{"title":"宠物小屋.suo <span style='color:#111;'> 36.50KB </span>","children":null,"spread":false},{"title":"debug","children":[{"title":"宠物小屋.pdb <span style='color:#111;'> 547.00KB </span>","children":null,"spread":false},{"title":"宠物小屋.exe <span style='color:#111;'> 68.00KB </span>","children":null,"spread":false},{"title":"宠物小屋.ilk <span style='color:#111;'> 541.38KB </span>","children":null,"spread":false}],"spread":true},{"title":"宠物小屋.ncb <span style='color:#111;'> 1.32MB </span>","children":null,"spread":false},{"title":"宠物小屋","children":[{"title":"Animal.cpp <span style='color:#111;'> 1.12KB </span>","children":null,"spread":false},{"title":"House.h <span style='color:#111;'> 159B </span>","children":null,"spread":false},{"title":"宠物小屋.vcproj <span style='color:#111;'> 4.23KB </span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"Cage.obj <span style='color:#111;'> 1.25KB </span>","children":null,"spread":false},{"title":"People.obj <span style='color:#111;'> 62.81KB </span>","children":null,"spread":false},{"title":"vc80.pdb <span style='color:#111;'> 204.00KB </span>","children":null,"spread":false},{"title":"main1.obj <span style='color:#111;'> 1.26KB </span>","children":null,"spread":false},{"title":"BuildLog.htm <span style='color:#111;'> 7.34KB </span>","children":null,"spread":false},{"title":"mt.dep <span style='color:#111;'> 65B </span>","children":null,"spread":false},{"title":"宠物小屋.exe.embed.manifest.res <span style='color:#111;'> 468B </span>","children":null,"spread":false},{"title":"main.obj <span style='color:#111;'> 46.52KB </span>","children":null,"spread":false},{"title":"宠物小屋.exe.intermediate.manifest <span style='color:#111;'> 385B </span>","children":null,"spread":false},{"title":"Animal.obj <span style='color:#111;'> 48.52KB </span>","children":null,"spread":false},{"title":"vc80.idb <span style='color:#111;'> 251.00KB </span>","children":null,"spread":false},{"title":"宠物小屋.exe.embed.manifest <span style='color:#111;'> 403B </span>","children":null,"spread":false},{"title":"House.obj <span style='color:#111;'> 1.26KB </span>","children":null,"spread":false}],"spread":false},{"title":"宠物小屋..user <span style='color:#111;'> 1.38KB </span>","children":null,"spread":false},{"title":"Animal.h <span style='color:#111;'> 660B </span>","children":null,"spread":false},{"title":"main.cpp <span style='color:#111;'> 2.92KB </span>","children":null,"spread":false},{"title":"People.h <span style='color:#111;'> 686B </span>","children":null,"spread":false},{"title":"Cage.h <span style='color:#111;'> 113B </span>","children":null,"spread":false},{"title":"People.cpp <span style='color:#111;'> 7.37KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}]

评论信息

  • u012421268 :
    没有bug,完美运行,虽然注释不多,但很容易看懂
    2014-06-25

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明