Description: Xiao Ming s pet lodge has 12 cages, each cage can put different animals, but only put one or 0, including cats Cat, Dog Dog, Rabbit Rabbit.
(1) to achieve a simple pet management system and add, delete cage pet query stored in each cage pet types (including cage is empty), the statistical pet cage types and quantities
(2) The definition describes a class pet lodge Shelves, of which 12 for storing all kinds of pet cages
(3) define a virtual base class Animal, including a pure virtual function ShowMe, display of each pet, including the type, color, weight and favorite foods and the like
(4) definition of the derived class Cat, Dog, Snake, concrete realization of the above-mentioned pure virtual function
(5) overloaded input operator >> makes it possible to read directly the cin command Pets color, weight and favorite food.
To Search:
File list (Check if you may need any files):
C++
...\12.cpp
...\12.dsp
...\12.dsw
...\12.h
...\12.ncb
...\12.opt
...\12.plg
...\12.sdf
...\12.sln
...\12.suo
...\12.vcxproj
...\12.vcxproj.user
...\Debug
...\.....\12.exe
...\.....\12.ilk
...\.....\12.lastbuildstate
...\.....\12.log
...\.....\12.unsuccessfulbuild
...\.....\12.vcxprojResolveAssemblyReference.cache
...\.....\12.write.1.tlog
...\.....\CL.read.1.tlog
...\.....\CL.write.1.tlog
...\.....\vc100.idb
...\.....\vc100.pdb
...\.....\vc60.idb
...\.....\vc60.pdb