文件名称:Animal
- 所属分类:
- Windows编程
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 247kb
- 下载次数:
- 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
........\.....\Animal.ilk
........\.....\Animal.obj
........\.....\Animal.pch
........\.....\Animal.pdb
........\.....\vc60.idb
........\.....\vc60.pdb
........\Debug
综合应用
........\Animal.dsp
........\Animal.dsw
........\Animal.ncb
........\Animal.opt
........\Animal.plg
........\Anne的宠物小屋有12个笼子.doc
........\Debug\Animal.exe
........\.....\Animal.ilk
........\.....\Animal.obj
........\.....\Animal.pch
........\.....\Animal.pdb
........\.....\vc60.idb
........\.....\vc60.pdb
........\Debug
综合应用