zoo.h
来自「通过类型姓名年龄类别来显示动物」· C头文件 代码 · 共 40 行
H
40 行
//**************************************
//* 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 + =
减小字号Ctrl + -
显示快捷键?