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

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

?? 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;

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美一区二区三区精品| 色综合久久九月婷婷色综合| 日韩午夜在线播放| 日本午夜一区二区| 91精品国产一区二区三区| 丝袜a∨在线一区二区三区不卡| 欧美日韩一区二区三区四区| 三级一区在线视频先锋 | 日韩电影在线观看网站| 日韩欧美的一区| 国产成a人亚洲精品| 亚洲三级视频在线观看| 欧美视频三区在线播放| 免费在线观看精品| 国产日韩欧美一区二区三区综合| 成人午夜伦理影院| 亚洲一区二区三区视频在线播放 | 51精品视频一区二区三区| 久久国产精品无码网站| 中国av一区二区三区| 91啪亚洲精品| 男女男精品网站| 久久精品人人做人人综合| 色狠狠桃花综合| 韩国欧美一区二区| 中文字幕一区二区三区不卡在线| 欧美人与性动xxxx| 国产成人精品亚洲777人妖| 亚洲精品国产无套在线观 | 欧美r级电影在线观看| 成人蜜臀av电影| 丝袜国产日韩另类美女| 日本一二三不卡| 日韩午夜在线播放| 色噜噜狠狠成人中文综合| 狠狠色狠狠色综合系列| 洋洋成人永久网站入口| 久久免费偷拍视频| 欧美久久久久中文字幕| 91丨porny丨户外露出| 极品少妇xxxx偷拍精品少妇| 一区二区三区四区激情| 国产亚洲精品超碰| 3atv一区二区三区| 91同城在线观看| 国产一本一道久久香蕉| 婷婷综合另类小说色区| 亚洲视频小说图片| 国产日韩精品一区| 日韩欧美国产三级电影视频| 欧美无砖专区一中文字| 99久久久精品免费观看国产蜜| 麻豆国产精品一区二区三区| 一区二区三区自拍| 国产欧美日韩在线观看| 精品伦理精品一区| 欧美一区二区三区在线| 在线观看视频一区二区 | 91成人免费在线| av影院午夜一区| 国产suv精品一区二区883| 麻豆精品一区二区三区| 天天综合网天天综合色| 亚洲国产视频一区二区| 亚洲精品国产成人久久av盗摄| 中文字幕欧美日本乱码一线二线| 日韩欧美国产一区二区三区 | 国产一区二三区| 蓝色福利精品导航| 美女www一区二区| 日韩国产精品久久久| 午夜精品福利久久久| 午夜婷婷国产麻豆精品| 一区二区久久久久久| 一区二区三区在线影院| 一区二区三区四区国产精品| 亚洲精品日韩一| 亚洲精品伦理在线| 一区二区三区高清在线| 亚洲一区免费视频| 午夜精品成人在线视频| 肉色丝袜一区二区| 午夜一区二区三区视频| 日韩vs国产vs欧美| 久久精品国产99国产| 精品一二线国产| 国产一区二区精品久久99| 国产裸体歌舞团一区二区| 国产.精品.日韩.另类.中文.在线.播放| 国产在线视视频有精品| 成人深夜在线观看| 一本久久精品一区二区| 欧美在线观看禁18| 欧美一个色资源| 国产喂奶挤奶一区二区三区| 欧美国产精品v| 亚洲激情综合网| 日韩精品五月天| 九九**精品视频免费播放| 国产福利一区二区三区在线视频| 99热国产精品| 欧美日韩电影一区| 精品国产免费久久| 国产精品人妖ts系列视频| 亚洲视频网在线直播| 日韩av在线播放中文字幕| 国产一区二区三区精品视频| 99视频一区二区| 91精品欧美久久久久久动漫| 337p日本欧洲亚洲大胆精品| 国产精品女人毛片| 日韩精品亚洲一区二区三区免费| 国产精品538一区二区在线| 91丨九色丨国产丨porny| 91精品国产91久久综合桃花| 欧美国产激情二区三区| 一个色在线综合| 国产在线观看一区二区| 色94色欧美sute亚洲线路一ni | 91精品国产全国免费观看| 亚洲精品在线免费播放| 一区二区高清免费观看影视大全| 久久aⅴ国产欧美74aaa| 一本一道久久a久久精品综合蜜臀| 91精品婷婷国产综合久久性色 | 亚洲成a人v欧美综合天堂| 精品一区二区三区影院在线午夜| 91日韩一区二区三区| 精品捆绑美女sm三区| 亚洲精品视频一区二区| 国产成人亚洲综合色影视| 精品视频在线免费观看| 国产精品久久免费看| 精品一区二区久久| 在线观看91视频| 国产精品福利av| 国产一区 二区| 欧美一区二视频| 亚洲高清视频在线| 色综合久久中文综合久久牛| 久久中文娱乐网| 日韩av在线发布| 欧美日韩在线免费视频| 亚洲三级在线免费| 成人免费va视频| 国产日韩av一区| 久久99精品国产.久久久久| 欧美日本乱大交xxxxx| 亚洲伦理在线精品| 成人晚上爱看视频| 国产视频一区在线播放| 紧缚捆绑精品一区二区| 日韩欧美国产综合在线一区二区三区 | 成人午夜av影视| 久久蜜桃香蕉精品一区二区三区| 蜜臀av在线播放一区二区三区| 欧美喷水一区二区| 亚洲国产精品久久人人爱| 一本一本大道香蕉久在线精品 | 欧洲日韩一区二区三区| 亚洲人被黑人高潮完整版| 成人性色生活片| 国产亚洲欧美日韩俺去了| 狠狠色丁香九九婷婷综合五月| 欧美不卡123| 九九九精品视频| 久久久国产午夜精品| 国产成人在线看| 欧美韩国日本不卡| 高清在线不卡av| 亚洲日本一区二区三区| 99re热视频精品| 一区二区三区日韩在线观看| 久久精品亚洲精品国产欧美kt∨ | 国产一区在线精品| 国产一区视频导航| 性久久久久久久| 亚洲免费在线视频| 色综合久久久久久久久| 亚洲精品高清在线| 欧美在线一区二区三区| 五月天久久比比资源色| 日韩欧美一二三| 国产原创一区二区| 中文字幕中文在线不卡住| 99久久久免费精品国产一区二区| 亚洲综合在线电影| 欧美乱妇20p| 蜜臀久久久99精品久久久久久| 精品国产电影一区二区| 国产成人在线看| 一区二区在线看| 91精品国产一区二区三区| 国产美女娇喘av呻吟久久| 中文字幕在线一区二区三区| 在线看不卡av| 奇米影视一区二区三区| 国产亚洲污的网站| 91成人看片片| 精久久久久久久久久久|