Description: 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. Description 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.
To Search:
File list (Check if you may need any files):
综合应用\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
综合应用