亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? animals.cpp

?? 通過類型姓名年齡類別來顯示動(dòng)物
?? CPP
字號(hào):



#include"Animals.h"

//****************************************************
//*	file Animals.cpp  Implementations of class Animal*
//****************************************************

int Animal::mCounter = 0;


Animal::Animal()                         // Default constructor 
{
	  mAnimalTypeID = GENERIC_ANIMAL_ID; // Animal type ID
	  mName[0] = 0;                      // Set the name to zero
	  mUniqueNumber = mCounter++;		 // Animal unique number
      mKindOfAnimal = CANINES;           // Set the type to Canines
	  mAge = 0;                          // Asign  zero to the Age 
	  mSex = 'M';				         // Asign Male to Sex
	  mCage = 0;                         // Asign zero to cage
	  mNext = NULL;                      // Asign NULL to next
}   

Animal::Animal( char * Name, AnimalKindType type, int Age, char Sex, int Cage )

{     //constructor function
	  SetName ( Name );                  // To Set the Name
	  mUniqueNumber = mCounter++;		 // Animal unique number
      mKindOfAnimal = type;	             // Animal type
	  mAge = Age;                        // Animal Age
	  mSex = Sex;				         // Animal Sex (F/M)
	  mCage = Cage;                      // Animal cage number
	  mAnimalTypeID = GENERIC_ANIMAL_ID; // Animal ID
	  mNext = NULL;                      // Asign NULL to next
}
            
Animal::~Animal()                        // Destructor
{
}       

char * Animal::AnimalTypeString()

{
	switch ( mKindOfAnimal )            // Switch statement

	{
		case CANINES:                   // If the animal is Canine
			return "CANINES";           // Return Canine

		case FELINES:                   // If the animal is Filine
			return "FELINES";           // Return Filine

		case RAPTILES:
			return "RAPTILES"; 

		case BIRDS:
			return "BIRDS";

		default:                        // If not Canine not Filine
			return "N/A";               // Return Not Available
	}
}

void Animal::Display( void )       // the output of the info of an animal

{

	cout<<"\tNumber:"<<mUniqueNumber;
	cout<<"\tName  :"<<mName;
	cout<<"\tType  :"<<AnimalTypeString();
	cout<<"\tSex   :"<<mSex;
	cout<<"\tAge   :"<<mAge;
	cout<<"\tCage  :"<<mCage<<endl;
	//cout<<endl;
}


void Animal::GetAnimalInfo()

{
	cout<<"Name.......: ";         // Get the Animal name from the user               
	cin>> mName;
	cin.get();
	do
	{

 	   cout<<"Sex (M/F)..: ";      // Get the Animal Sex from the user
	   cin>> mSex;
	   }while ( mSex != 'M' && mSex != 'F' );
	cin.get();
	cout<<"Age........: ";         // Get Age from the user 
	cin>> mAge;
	cin.get();
	cout<<"Cage.......: ";         // Get Cage from the user
	cin>> mCage;
	cin.get();
}


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

//***********************************
//*	Implementations of class Wolve  *
//***********************************

Wolve::Wolve()                        // Default constructor
{
	SetAnimalTypeID ( WOLVE_ID );     // Wolve ID
	SetAnimalType( CANINES );         // Wolve is Canine
}

Wolve::Wolve( char * Name, int Age, char Sex, int Cage ):
	      Animal( Name, CANINES, Age, Sex, Cage )

{
     
	SetAnimalTypeID ( WOLVE_ID );
}

Wolve::~Wolve()                       // Destructor
{
}

void Wolve::Display ( void )          // Display info func

{
	cout <<"Wolve";                 // Display Wolve
	Animal::Display();                // Call Display function
}

void Wolve::GetAnimalInfo()

{
	cout<<"\nEnter information for a new wolve:\n";
   	Animal::GetAnimalInfo();          // call the Animal information function
}


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



//*********************************
//*	Implementations of class Bear *
//*********************************

Bear::Bear()                          // Default constructor

{
	SetAnimalType( CANINES );         // Set Bear to Canine Animal
	SetAnimalTypeID(BEAR_ID	);        // Set the Bear ID
}

Bear::Bear( char * Name, char * Color, int Age, char Sex, int Cage ):
	      Animal( Name, CANINES, Age, Sex, Cage )

{   // constructo
	strcpy ( mColor, Color );         // Get the Bear color 
	SetAnimalTypeID(BEAR_ID	);        // Call Animal ID function
}

Bear::~Bear()                         // Destructor
{
}

void Bear::Display ( void )

{

	cout <<"Bear\tColor :"<<mColor;  // Get the Bear color 
	Animal::Display();                       // Call display function
}

void Bear::GetAnimalInfo()

{
	cout<<"\nEnter information for a new bear:\n";
	cout <<"Color......: ";
	cin>> mColor;                         // Input of the color
	Animal::GetAnimalInfo();              // call Animal infor function
}


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

//*********************************
//*	Implementations of class Lion *
//*********************************

Lion::Lion()                            // Default constructor

{
	SetAnimalType( FELINES );           // Lion is Filine
	SetAnimalTypeID(LION_ID	);          // Lion identification
}

Lion::Lion( char * Name, int Pride, int Age, char Sex, int Cage ):
	      Animal( Name, FELINES, Age, Sex, Cage )

{
	mPride = Pride;                     // Lion Pride
	SetAnimalTypeID(LION_ID	);          // Call Lion type ID function
}

Lion::~Lion()                           // Destructor
{
}

void Lion::Display ( void )

{
	cout <<"Lion\tPride :"<<mPride;// Lion Pride
	Animal::Display();                       // Call Animal Display function
}

void Lion::GetAnimalInfo()

{
	cout<<"\nEnter information for a new lion:\n";
	cout<<"Pride......: ";                // Get the Pride from the user
	cin>> mPride;
	Animal::GetAnimalInfo();              // Call Animal GetAnimalInfo function
}


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

//*********************************
//*	Implementations of class Tiger*
//*********************************

Tiger::Tiger()                           // Default constructor

{
	SetAnimalType( FELINES );             // Tiger is Feline
	SetAnimalTypeID ( TIGER_ID );         // Tiger identification
}


Tiger::Tiger(char * Name, double Protein, int Age, char Sex, int Cage ):
	      Animal( Name, FELINES, Age, Sex, Cage )

{
	mProtein = Protein;                   // Tiger s protein
	SetAnimalTypeID ( TIGER_ID );         // Call AnimalTypeID func for Tiger
}


Tiger::~Tiger()                                  // Destructor
{
}


void Tiger::Display ( void )

{
	cout <<"Tiger\tProtein:"<<mProtein; // Display Tiger protein
	Animal::Display();                           // Call Animal display function
}


void Tiger::GetAnimalInfo()

{
	cout<<"\nEnter information for a new tiger:\n";
	cout <<"Protein....: ";               // Get the Tiger Protein from user
	cin>> mProtein;
	Animal::GetAnimalInfo();             // Call Animal GetAnimalInfo function 
}


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

//***********************************
//*	Implementations of class Coyotes*
//***********************************

Coyote::Coyote()                        // Default constructor

{
	SetAnimalTypeID ( COYOTE_ID );      // Coyote ID
	SetAnimalType( CANINES );           // Coyote is Canine
}

Coyote::Coyote( char * Name, int Age, char Sex, int Cage ):
	      Animal( Name, CANINES, Age, Sex, Cage )

{
     
	SetAnimalTypeID ( COYOTE_ID );
}

Coyote::~Coyote()                       // Destructor
{
}

void Coyote::Display ( void )          // Display info func

{
	cout <<"Coyote\n";                 // Display Coyote
	Animal::Display();                 // Call Display function
}

void Coyote::GetAnimalInfo()

{
	cout<<"\nEnter information for a new Coyote:\n";
   	Animal::GetAnimalInfo();          // call the Animal information function
}
//***********************************************************************



//***********************************
//*	Implementations of class WildCat*
//***********************************

WildCat::WildCat()                           // Default constructor

{
	SetAnimalType( FELINES );               // WildCat is Feline
	SetAnimalTypeID ( WILDCAT_ID );         // WildCat identification
}


WildCat::WildCat(char * Name, double Protein, int Age, char Sex, int Cage ):
	      Animal( Name, FELINES, Age, Sex, Cage )

{
	mProtein = Protein;                   // WildCat s protein
	SetAnimalTypeID ( WILDCAT_ID );       // Call AnimalTypeID func for WildCat
}


WildCat::~WildCat()                                  // Destructor
{
}


void WildCat::Display ( void )

{
	cout <<"WildCat\tProtein:"<<mProtein; // Display WildCat protein
	Animal::Display();                           // Call Animal display function
}


void WildCat::GetAnimalInfo()

{
	cout<<"\nEnter information for a new WildCat:\n";
	cout <<"Protein....: ";               // Get the WildCat Protein from user
	cin>> mProtein;
	Animal::GetAnimalInfo();             // Call Animal GetAnimalInfo function 
}
//*************************************************************************


//*************************************
//*	Implementations of class Leopard  *
//*************************************

Leopard::Leopard()                           // Default constructor

{
	SetAnimalType( FELINES );               // Leopard is Feline
	SetAnimalTypeID ( LEOPARD_ID );         // Leopard identification
}


Leopard::Leopard(char * Name, double Protein, int Age, char Sex, int Cage ):
	      Animal( Name, FELINES, Age, Sex, Cage )

{
	mProtein = Protein;                   // Leopard s protein
	SetAnimalTypeID ( LEOPARD_ID );       // Call AnimalTypeID func for Leopard
}


Leopard::~Leopard()                                  // Destructor
{
}


void Leopard::Display ( void )

{
	cout <<"Leopard\tProtein:"<<mProtein; // Display Leopard protein
	Animal::Display();                           // Call Animal display function
}


void Leopard::GetAnimalInfo()

{
	cout<<"\nEnter information for a new Leopard:\n";
	cout <<"Protein....: ";               // Get the Leopard Protein from user
	cin>> mProtein;
	Animal::GetAnimalInfo();             // Call Animal GetAnimalInfo function 
}

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

//***********************************
//*	Implementations of class Fox    *
//***********************************

Fox::Fox()                            // Default constructor

{
	SetAnimalTypeID ( FOX_ID );       // Fox ID
	SetAnimalType( CANINES );         // Fox is Canine
}

Fox::Fox( char * Name, int Age, char Sex, int Cage ):
	      Animal( Name, CANINES, Age, Sex, Cage )

{
     
	SetAnimalTypeID ( FOX_ID );
}

Fox::~Fox()                             // Destructor
{
}

void Fox::Display ( void )            // Display info func

{
	cout <<"Fox\n";                   // Display Fox
	Animal::Display();                // Call Display function
}

void Fox::GetAnimalInfo()

{
	cout<<"\nEnter information for a new Fox\n";
   	Animal::GetAnimalInfo();      // call the Animal information function
}


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


//*************************************
//*	Implementations of class WildDogs *
//*************************************

Dogs::Dogs()                          // Default constructor

{
	SetAnimalType( CANINES );         // Set Dogs to Canine Animal
	SetAnimalTypeID(DOGS_ID	);        // Set the Dogs ID
}

Dogs::Dogs( char * Name, char * Color, int Age, char Sex, int Cage ):
	      Animal( Name, CANINES, Age, Sex, Cage )

{   
    // constructor
	strcpy ( mColor, Color );         // Get the Dogs color 
	SetAnimalTypeID(DOGS_ID	);        // Call Animal ID function
}

Dogs::~Dogs()                         // Destructor
{
}

void Dogs::Display ( void )

{
	cout <<"Dogs\tColor :"<<mColor;// Get the Dogs color 
	Animal::Display();                       // Call display function
}

void Dogs::GetAnimalInfo()

{
	cout<<"\nEnter information for a new Dog:\n";
	cout <<"Color......: ";
	cin>> mColor;                         // Input of the color
	Animal::GetAnimalInfo();              // call Animal infor function
}


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

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩亚洲综合一区| 国产一区二区看久久| 日韩欧美二区三区| 波多野结衣在线aⅴ中文字幕不卡| 亚洲超碰97人人做人人爱| 欧美高清在线视频| 精品处破学生在线二十三| 欧洲av在线精品| 成人福利视频网站| 黄色资源网久久资源365| 天天免费综合色| 亚洲激情自拍视频| 国产精品人人做人人爽人人添| 日韩写真欧美这视频| 在线观看亚洲专区| 99久久99精品久久久久久| 国产精品一区二区免费不卡 | 亚洲精品久久久蜜桃| 国产午夜精品一区二区三区四区| 日韩亚洲欧美在线观看| 欧美高清视频一二三区 | 97精品久久久久中文字幕| 国模大尺度一区二区三区| 五月天丁香久久| 亚洲成人av福利| 亚洲亚洲人成综合网络| 亚洲精品欧美在线| 亚洲卡通动漫在线| 亚洲天堂福利av| 中文字幕一区二区三区视频| 国产视频一区在线观看| 久久毛片高清国产| 久久色成人在线| 久久精品欧美日韩精品| 久久久噜噜噜久久人人看| 国产亚洲一二三区| 国产欧美精品一区aⅴ影院 | 中文字幕一区二区三区在线不卡| 国产精品久久久久影院色老大 | 蜜臀99久久精品久久久久久软件| 日本亚洲天堂网| 老司机精品视频一区二区三区| 日韩国产欧美在线观看| 免费在线一区观看| 韩国一区二区三区| 国产v综合v亚洲欧| 91美女视频网站| 欧美三级一区二区| 91精品国产免费久久综合| 日韩一区二区免费高清| 精品入口麻豆88视频| 久久这里只有精品首页| 精品人在线二区三区| 国产亚洲制服色| 亚洲精品国产第一综合99久久| 一区二区三区四区乱视频| 午夜久久久久久久久| 日av在线不卡| 懂色av一区二区在线播放| 99久久99久久免费精品蜜臀| 欧美撒尿777hd撒尿| 日韩视频一区在线观看| 国产视频一区在线观看| 亚洲欧美日韩小说| 蜜臀91精品一区二区三区 | 日韩精品三区四区| 国产酒店精品激情| av网站一区二区三区| 欧美日韩一区视频| 久久精品免费在线观看| 亚洲制服丝袜在线| 国产一区二区91| 91极品视觉盛宴| 久久综合久色欧美综合狠狠| 亚洲同性gay激情无套| 日韩高清国产一区在线| 国产黑丝在线一区二区三区| 色先锋资源久久综合| 日韩一区二区高清| 中文字幕一区二区视频| 日韩二区在线观看| 91啪亚洲精品| 久久综合九色综合欧美就去吻 | 风流少妇一区二区| 6080国产精品一区二区| 国产精品视频线看| 蜜臀av性久久久久蜜臀aⅴ四虎| 成人aaaa免费全部观看| 欧美一区二区高清| 亚洲欧美一区二区视频| 韩国女主播成人在线观看| 日本韩国精品在线| 久久精品亚洲乱码伦伦中文 | 国产精品99久| 欧美日本在线观看| 日韩毛片在线免费观看| 经典三级视频一区| 欧美日本国产一区| 亚洲视频狠狠干| 国产一区二区三区蝌蚪| 91麻豆精品国产91久久久更新时间| 国产欧美精品一区二区色综合 | 97成人超碰视| 国产午夜精品久久| 开心九九激情九九欧美日韩精美视频电影 | 国产成人精品三级麻豆| 91精品国产福利在线观看| 一区二区三区四区精品在线视频| 粉嫩av亚洲一区二区图片| 精品国产乱码久久久久久夜甘婷婷| 亚洲小说欧美激情另类| 色综合久久99| 亚洲婷婷综合色高清在线| 国产成人精品影视| 2021国产精品久久精品| 青青草国产精品亚洲专区无| 欧美午夜电影网| 一级女性全黄久久生活片免费| 成人高清伦理免费影院在线观看| 精品国产乱码久久久久久1区2区| 日韩 欧美一区二区三区| 欧美色国产精品| 香蕉av福利精品导航| 欧美日韩性生活| 亚洲丰满少妇videoshd| 欧美亚洲自拍偷拍| 亚洲一区二区三区三| 884aa四虎影成人精品一区| 1024成人网色www| 色吊一区二区三区| 亚洲在线视频一区| 欧美亚洲动漫另类| 天堂成人免费av电影一区| 91精品福利在线一区二区三区| 午夜成人在线视频| 91精品国产色综合久久ai换脸 | 成人午夜av电影| 国产精品久久久久久一区二区三区| 国产精品一区在线观看乱码 | 亚洲三级小视频| 在线亚洲欧美专区二区| 亚洲成人av一区| 欧美一区二区日韩一区二区| 久久精品国产亚洲一区二区三区 | 亚洲老妇xxxxxx| 欧美亚洲一区三区| 肉肉av福利一精品导航| 日韩久久久精品| 国产精品亚洲第一| 国产精品不卡一区二区三区| 91免费观看视频在线| 亚洲成av人影院| 精品福利视频一区二区三区| 国产mv日韩mv欧美| 亚洲三级电影网站| 3d动漫精品啪啪一区二区竹菊| 久久国产三级精品| 中文字幕精品在线不卡| 91丝袜美腿高跟国产极品老师| 五月激情综合色| 久久综合九色综合97婷婷| av资源网一区| 日韩国产欧美在线观看| 久久精品欧美一区二区三区麻豆| 色综合久久88色综合天天免费| 日韩精品一二三四| 日本一区二区三区高清不卡| 欧美在线综合视频| 韩国三级在线一区| 一区二区三区免费| 欧美成人女星排行榜| www.99精品| 六月丁香婷婷久久| 亚洲欧洲在线观看av| 日韩一二三四区| 色综合激情五月| 久久99精品久久只有精品| 日韩美女视频一区二区| 欧美一二三区精品| 99久久精品免费看国产| 青青国产91久久久久久| 18成人在线视频| 精品国产乱码久久久久久久| 91成人免费在线| 国产成a人亚洲精品| 日本vs亚洲vs韩国一区三区二区 | 国产成人免费视频网站高清观看视频 | 国产日韩欧美a| 欧美日韩在线播放一区| 成人免费视频视频| 日韩1区2区3区| 亚洲黄色av一区| 国产日韩v精品一区二区| 91精品国产综合久久久久久漫画| 成人福利视频在线看| 亚洲123区在线观看| 91精品国产综合久久精品图片| 成人动漫一区二区三区| 免费精品视频最新在线| 一区二区三区在线看|