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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? zoomain.cpp

?? 通過類型姓名年齡類別來顯示動物
?? CPP
?? 第 1 頁 / 共 2 頁
字號:


//***********************
//*	File: ZooMain.cpp   *
//***********************

#include <iostream.h>
#include "Zoo.h"
#include "Menu.h"

Zoo MyZoo;

// declaire char as static for the count
static char * AddAnimalMenuStr[] = {  "Bear",
                                      "Tiger",
									  "Lion", 
									  "Wolve", 
									  "Coyote",
                                      "WildCat",
                                      "Leopard",
									  "Fox", 
									  "Dogs"};

void Warning ( char * text = NULL )

{
	if ( text != NULL )
	    cout<<"\t\t"<<text<<endl;        // Prints a message to the user
	EatKeys();
  	cout<<"\t\tPress ENTER To Continue..."<<endl;
	while ( cin.get() != '\n' );
}

void AddAnimals( void )         // Add Animal function

{
	int choice;                 // user choices
	Animal *pAnim;              // Pointer to Animal
    // Add Animal to Zoo Title
	Menu AnimalMenu ( "\n\n\t\tAdd Animal To The Research Zoo", AddAnimalMenuStr, 9);
    // to loop for the user so he/she can add as much Animals they wish
	for (;;)

	{
		choice = AnimalMenu.MakeChoice(); // Make a choice function

		switch ( choice )                 // Switch statement for adding
		{

		case -1:                          // For Animal not existing
			return;

		case 0:
			pAnim = new Bear;             // To Add a Bear
			break;

		case 1:
			pAnim = new Tiger;            // To Add a Tiger
			break;

		case 2:
			pAnim = new Lion;             // To Add a Lion
			break;

		case 3:
			pAnim = new Wolve;            // To Add a Wolve
			break;

        case 4:
			pAnim = new Coyote;          // to Add a Coyote
			break;

		case 5:
			pAnim = new WildCat;         // To Add WildCat
			break;

		case 6:
			pAnim = new Leopard;        // To Add Leopard
			break;

		case 7:
			pAnim = new Fox;            // To Add Fox
			break;

		case 8:
			pAnim = new Dogs;          // To Add Dog
			break;

		}

		pAnim->GetAnimalInfo();           // Pointer to GetAnimalInf function
		// If the Animal is not existing
		if ( MyZoo.AddAnimal ( pAnim ) == FALSE )

		{
			delete pAnim;
			// Give warning to the user
			Warning ( "ERROR Adding Animal To Zoo !" );
		}

		else

		{
			// Display the total of the Animal
			cout<<"Total Number Of Animals In The Zoo :"<<MyZoo.CountAnimals(GENERIC_ANIMAL_ID)<<endl;
			Warning ( );
		}
	}
}

void DeleteAnimals()               // Function for deleting an Animal

{
	int choice, Number;
	// Display the delete Menu_Animal
	Menu AnimalMenu ( "\n\n\t\tRemove Animals From Research Zoo", AddAnimalMenuStr, 9);

	for(;;)  // To loop for more delete if the user wishes to do so..

	{
		// if the user choise is in the menu delete (-1) Animal
		choice = AnimalMenu.MakeChoice();
		if ( choice == -1 ) return;
		if ( MyZoo.CountAnimals( choice+1 ) == 0 ) // no animals to delete

		{
			// if the amount of deletion is more than what's in the zoo container
			// Give warnimg that there is no more from that type to delete.
			cout<<"\nThere Are No "<<AddAnimalMenuStr[choice]<<" To Be Deleted !\n";
		}

		else

		{
			clrscr();
			cout<<"\t\t\tDeleting "<<AddAnimalMenuStr[choice]<<".\n\n";
			MyZoo.Display ( choice+1 );
			// to delete an animal via the unique number 
			cout<<"Enter Animal Number To Delete :";
			cin>>Number;
			// If the ID number the user enter is not correct
			if ( NULL == MyZoo.RemoveAnimalViaNumber( Number, TRUE ) )
				cout << "Can Not Delete Animal :"<<Number<<endl;
             // If the ID number the user enter is correct
			else cout <<"Animal <"<<Number<<"> Was Deleted.\n";
		}

		Warning ( );
	}

}

void DisplayAnimalsByType( void )

{
	int choice;  
	// To display the menu of all Animals, or to diplay each type of Animal
    static char * DispAnimalMenuStr[] = {"All Animals",
		                                 "Bears",
										 "Tigers",
										 "Lions", 
										 "Wolves", 
										 "Coyote", 
										 "WildCat",   
										 "Leopard",
										 "Fox", 
										 "Dogs"};
    // Display Animal Menu
	Menu AnimalMenu ( "\n\n\t\tDisplay Animals In The Research Zoo\n\n", DispAnimalMenuStr, 10);

	for (;;)   // For loop!! the user can choose as much as he/she wishes

	{
		choice = AnimalMenu.MakeChoice(); // Get the choice
		if ( choice == -1 ) return;
		clrscr();                         // Clear screen function
		cout << "\tData of " << DispAnimalMenuStr[choice] << " In The Zoo.\n\n";
		MyZoo.Display ( choice );         // Display choice
	}
}

void DisplayAnimalsByCage( void )

{
	int cage;
    // The user to enter the cage number to browse the Animal is such cage..
	cout<<"\nEnter The Cage Number You Want To Browse :";
	cin>>cage;                        // Input for the cage number
	clrscr();                         // Clear screen function
    // Display the list
	cout<<"\t\tData Of Animals In Cage <"<<cage<<">\n\n";
	// Display the Animals via the cage requested
	MyZoo.DisplayViaCage( cage );
}

void IncrementAge( )

{
	int cage, number;
	Animal * anim;

	if ( MyZoo.CountAnimals() == 0 )  // give warning if the Zoo is empty

	{
		Warning ( "Nothing To Increment !" );
		return;
	}

	// Input of the cage number so the user can increment the Animal Age
	cout<<"\nEnter The Cage Number\nFrom What You Want To Increment age :";
	cin>>cage;                        // Input of the cage number from user
	clrscr();                         // Clear screen function
	cout<<"\t\tData Of Animals In Cage <"<<cage<<">\n\n";
	MyZoo.DisplayViaCage( cage ); // Display the Animal(s) requested
	// the input of the unique number to increment Age
	cout<<"Enter Animal's Number Which Age To Be Incremented :";
	cin>>number;                  // Input of the unique number from user
	anim = MyZoo.FindAnimalViaNumber ( number);
	if ( anim == NULL )           // give warning if the number is not existing

	{
		// Display a message
		Warning ( "There Is	No Such Animal Number !"); 
		return;
	}

	clrscr();                             // Clear screen
	cout<<"\t\tIncrementing The Animal Age \n\n";// Increment the Age
	anim->Display();	                  // displaying current info
	Warning();                            // Call warning func
	anim->BirthDay();                     // anim point to BirthDay func
	clrscr();                             // Call clear screen function
	cout<<"\t\tAnimal Age Was Incremented !\n\n";// Display a message
	anim->Display();                      // Display current info
	Warning();                            // Give warning if no Animal
}

void MoveAnimal( )             // func to move Animal from cage to cage

{
	int cage, number;
	Animal * anim;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久精品免费在线观看| 精品视频在线免费| 久久久久久久久久久黄色| 国产剧情在线观看一区二区| 国产午夜亚洲精品不卡| 成人av资源站| 亚洲精品欧美激情| 欧美福利一区二区| 精品一区二区三区免费| 国产日产欧美一区二区三区| 91在线播放网址| 亚洲一区二区av电影| 欧美一区二区三区的| 狠狠v欧美v日韩v亚洲ⅴ| 国产精品久久久久一区二区三区共| 91色porny在线视频| 亚洲一二三级电影| 精品国产精品一区二区夜夜嗨| 风间由美一区二区av101| 亚洲欧美日韩在线不卡| 欧美一区二区三级| 成人爽a毛片一区二区免费| 亚洲综合视频在线观看| 久久久久成人黄色影片| 欧美三级在线播放| 国产丶欧美丶日本不卡视频| 亚洲在线免费播放| 国产偷v国产偷v亚洲高清 | 久久国产精品第一页| 欧美极品xxx| 91精品在线一区二区| 国产成人高清在线| 丝瓜av网站精品一区二区| 国产日韩av一区二区| 欧美精品aⅴ在线视频| av综合在线播放| 老色鬼精品视频在线观看播放| 一区二区中文字幕在线| 日韩精品一区二区三区在线播放| 91网站最新地址| 国产资源在线一区| 日韩精品成人一区二区在线| 亚洲天堂福利av| 久久久夜色精品亚洲| 69成人精品免费视频| 91麻豆国产福利精品| 国产精品 欧美精品| 久久精品国产99| 亚洲图片欧美视频| 亚洲欧美一区二区久久| 久久久综合九色合综国产精品| 91精品国产一区二区三区蜜臀| 色综合 综合色| av网站一区二区三区| 国产麻豆视频精品| 久久aⅴ国产欧美74aaa| 视频一区中文字幕国产| 亚洲影视资源网| 亚洲日本在线视频观看| 国产精品网站在线观看| 久久久精品黄色| 中文字幕成人网| 日韩美女视频一区二区在线观看| 91视频精品在这里| 国产成人午夜高潮毛片| 国产一区二区三区电影在线观看| 青青草成人在线观看| 亚洲成av人**亚洲成av**| 亚洲精品成人少妇| 亚洲色图一区二区三区| 国产精品乱码人人做人人爱| 国产欧美一区二区精品久导航| 久久久久久久av麻豆果冻| 欧美va在线播放| 久久综合色一综合色88| 久久影院视频免费| 久久久国产综合精品女国产盗摄| 久久网站最新地址| 国产三级精品在线| 中国色在线观看另类| 自拍偷拍欧美精品| 一区二区三区欧美| 亚洲国产中文字幕在线视频综合| 亚洲成人在线网站| 蜜臀91精品一区二区三区| 久久精品国产亚洲一区二区三区| 美日韩一区二区三区| 国产一区二区调教| 亚洲一二三四久久| 国产亚洲欧美中文| 日本一区二区在线不卡| 中文字幕一区在线| 亚洲综合在线电影| 亚洲大片免费看| 免费的国产精品| 国产91在线|亚洲| 99久久99久久免费精品蜜臀| 91精彩视频在线观看| 欧美福利视频一区| 久久久久九九视频| 日韩毛片视频在线看| 日韩国产欧美视频| 国产乱码精品1区2区3区| 91婷婷韩国欧美一区二区| 欧美午夜理伦三级在线观看| 日韩欧美国产一区二区三区| 中文乱码免费一区二区| 亚洲妇女屁股眼交7| 狠狠狠色丁香婷婷综合激情| 91一区二区在线| 日韩欧美国产综合一区 | 欧美日韩国产中文| 97精品电影院| 91麻豆精品国产综合久久久久久| 欧美zozozo| 中文字幕一区二区不卡| 日韩国产精品大片| 不卡在线观看av| 日韩视频永久免费| 国产日韩欧美精品电影三级在线| 亚洲欧美乱综合| 日本视频一区二区三区| 91碰在线视频| 久久中文字幕电影| 亚洲电影你懂得| 国产91精品一区二区麻豆亚洲| 色菇凉天天综合网| 欧美韩日一区二区三区四区| 奇米精品一区二区三区在线观看| 99久久er热在这里只有精品15| 日韩精品一区二区在线观看| 亚洲国产一区二区三区 | 色综合一区二区| 久久综合久色欧美综合狠狠| 亚洲与欧洲av电影| 精品国免费一区二区三区| 一区二区三区欧美日韩| 成人一区二区三区| 4438成人网| 亚洲综合色成人| 99综合电影在线视频| www激情久久| 免费在线观看一区二区三区| 欧美日韩在线三区| 亚洲免费观看在线观看| 成熟亚洲日本毛茸茸凸凹| 精品999在线播放| 日韩av在线发布| 欧美日韩一区二区三区四区五区| 国产精品福利电影一区二区三区四区| 精品制服美女久久| 欧美一区二区三区成人| 视频一区二区中文字幕| 欧洲精品在线观看| 洋洋成人永久网站入口| 91原创在线视频| 亚洲欧美日韩系列| 97久久久精品综合88久久| 国产精品美女久久久久aⅴ| 国产成人精品亚洲777人妖| 久久一日本道色综合| 国产麻豆精品一区二区| 精品99999| 国产精品一区在线观看你懂的| 久久亚洲欧美国产精品乐播 | 91麻豆精品国产自产在线观看一区| 亚洲精品第1页| 欧美在线免费播放| 午夜精品在线视频一区| 欧美人xxxx| 美女一区二区视频| 欧美videofree性高清杂交| 国产综合久久久久久久久久久久 | 欧美一三区三区四区免费在线看| 亚洲午夜羞羞片| 欧美精品第1页| 麻豆精品一二三| 久久婷婷久久一区二区三区| 东方欧美亚洲色图在线| 中文字幕亚洲不卡| 欧美优质美女网站| 免费成人在线网站| 久久久久久久久97黄色工厂| youjizz久久| 亚洲成人在线免费| 337p日本欧洲亚洲大胆色噜噜| 国产91精品在线观看| 亚洲男人的天堂在线aⅴ视频| 欧美三级电影在线观看| 免费观看日韩电影| 日本一区二区三区免费乱视频| 色综合网色综合| 亚洲第一av色| 久久这里只有精品首页| 99精品欧美一区| 日韩福利电影在线| 欧美精彩视频一区二区三区| 欧洲精品一区二区三区在线观看| 久久电影网站中文字幕| 中文字幕视频一区|