文件名称:Animal
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:246.97kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
综合应用:
Anne的宠物小屋有12个笼子,每个笼子可以放不同的动物,但只能放1只或0只,包括:猫Cat,狗Dog,蛇Snake。
1.实现一个简单的管理系统,可增加、删除笼子中的宠物,查询每个笼子中存放的
宠物类型,(包括笼子为空的情况),统计笼中宠物的种类和数量。
2.定义描述宠物小屋的类shelves,其中有12笼子用于存放各种宠物。
3.定义虚拟基类Animal,包括纯虚函数ShowMe,显示每个宠物的情况,包括类型、颜色、体重和喜爱的食物。
4.定义派生类Cat,Dog,Snake,具体实现上述纯虚函数。
5.重载输入‘>>’运算符,使得可能通过cin直接读入宠物颜色、体重和喜爱的食物。
6.编写main函数,测试上述要求和各种功能。-Integration:
Anne s Pet Lodge has 12 cages, each cage can be placed in different animals, but only put 1 or 0, including: Cat Cat, Dog Dog, Snake Snake.
1. The realization of a simple management system, increase, remove pet cages, storage cages for each query
Pet type (including cage empty case), statistics cage type and number of pets.
2. Descr iption of the class definition of pet cabin shelves, of which 12 cages used to store all kinds of pets.
3. Definition of the virtual base class Animal, including the pure virtual function ShowMe, show each of pets, including type, color, weight, and favorite food.
4. Definition of derived classes Cat, Dog, Snake, concrete realization of the pure virtual function.
5. Overloaded input >> operator, making it possible to directly read by cin pet color, weight, and favorite food.
6. Main function the preparation, testing requirements and the various features mentioned above.
Anne的宠物小屋有12个笼子,每个笼子可以放不同的动物,但只能放1只或0只,包括:猫Cat,狗Dog,蛇Snake。
1.实现一个简单的管理系统,可增加、删除笼子中的宠物,查询每个笼子中存放的
宠物类型,(包括笼子为空的情况),统计笼中宠物的种类和数量。
2.定义描述宠物小屋的类shelves,其中有12笼子用于存放各种宠物。
3.定义虚拟基类Animal,包括纯虚函数ShowMe,显示每个宠物的情况,包括类型、颜色、体重和喜爱的食物。
4.定义派生类Cat,Dog,Snake,具体实现上述纯虚函数。
5.重载输入‘>>’运算符,使得可能通过cin直接读入宠物颜色、体重和喜爱的食物。
6.编写main函数,测试上述要求和各种功能。-Integration:
Anne s Pet Lodge has 12 cages, each cage can be placed in different animals, but only put 1 or 0, including: Cat Cat, Dog Dog, Snake Snake.
1. The realization of a simple management system, increase, remove pet cages, storage cages for each query
Pet type (including cage empty case), statistics cage type and number of pets.
2. Descr iption of the class definition of pet cabin shelves, of which 12 cages used to store all kinds of pets.
3. Definition of the virtual base class Animal, including the pure virtual function ShowMe, show each of pets, including type, color, weight, and favorite food.
4. Definition of derived classes Cat, Dog, Snake, concrete realization of the pure virtual function.
5. Overloaded input >> operator, making it possible to directly read by cin pet color, weight, and favorite food.
6. Main function the preparation, testing requirements and the various features mentioned above.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
综合应用/Animal.cpp
综合应用/Animal.dsp
综合应用/Animal.dsw
综合应用/Animal.ncb
综合应用/Animal.opt
综合应用/Animal.plg
综合应用/Anne的宠物小屋有12个笼子.doc
综合应用/Debug/Animal.exe
综合应用/Debug/Animal.ilk
综合应用/Debug/Animal.obj
综合应用/Debug/Animal.pch
综合应用/Debug/Animal.pdb
综合应用/Debug/vc60.idb
综合应用/Debug/vc60.pdb
综合应用/Debug
综合应用
综合应用/Animal.dsp
综合应用/Animal.dsw
综合应用/Animal.ncb
综合应用/Animal.opt
综合应用/Animal.plg
综合应用/Anne的宠物小屋有12个笼子.doc
综合应用/Debug/Animal.exe
综合应用/Debug/Animal.ilk
综合应用/Debug/Animal.obj
综合应用/Debug/Animal.pch
综合应用/Debug/Animal.pdb
综合应用/Debug/vc60.idb
综合应用/Debug/vc60.pdb
综合应用/Debug
综合应用
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.