⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 zoo.h

📁 通过类型姓名年龄类别来显示动物
💻 H
字号:


//**************************************
//* Zoo.h: interface for the Zoo class.*
//**************************************



#if !defined(_ZOO_DEF__)
#define _ZOO_DEF__
#include "Animals.h"
#define MAX_ZOO_SIZE 50                 // Max Zoo Animal size 50

class Zoo  

{

private:

	Animal *Begin;                      // Begining of the list of the Animals
    
public:

	int CountAnimals ( int TypeID = 0); // count Animals function
	void Display ( int AnimalTypeID );  // Display Animals ID
	// Delete Animal when you been ask to enter the number of the Animal
	// you wish to delete....
	void DisplayViaCage(int cage);// Remove Animal from Zoo, and deleted if you wish too
	Animal *RemoveAnimalViaNumber(int UniqueNumber, int ToCallDelete);
	Animal *FindAnimalViaNumber(int UniqueNunber);
	bool_t AddAnimal(Animal *pAnim);     // To add Animal(s)
	Zoo();                               // Default constructor
   ~Zoo();                               // Destructor

};

#endif 

//************************************************************************

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -