#include <iostream>
#include <string>
using namespace std;

const int MAX_Phonebook = 10;


const int MAX_Phonenumber =4 ;

struct PersonalInfo {

   string FirstName;
   string LastName;
   string NickName;
   string PhoneNumber [MAX_Phonenumber];
   string OtherInfo;
   


};


   

class PhoneBook {

   public:
     
	PhoneBook();
     //Constructor

	PhoneBook( const PersonalInfo & _fr  );
	 //convertion Rec
	 
	

	 void displayPhonenumbersInfo( ) const;

   private:
     PersonalInfo fr;



};	 
void mainMenu();
void reactToMainMenu( PersonalInfo[] );
int reactToPhoneInfo( PersonalInfo[] , int count )
{
	//Wirte Your Code Here ,,,

	return 0;
}

void enterPersonalInfo();

void displayPhonebookInfo( const PersonalInfo fr[], int count )
{
	//write Your Code Here
}






void enterPersonalInof( PersonalInfo & fr );

 void mainMenu()
{
	cout << "                Menu Selcections" << endl;
	cout << endl << endl;
	cout << "E ) Enter phonebook info" << endl;
	cout << "D ) Disply phonebook" << endl;
	cout << "X ) Exit" << endl;

}

void reactToMainMenu( PersonalInfo fr[] )
{
   char ch;
   bool tryAgain = true;
   int count = 0;
   do {
          system("clear" );
          mainMenu();
		  cout << "Please Enter a selection" << endl;
		  cin >> ch;
          switch ( toupper( ch )  )  {
              
             case 'E': count += reactToPhoneInfo( fr, count );
					  break;
             case 'D': displayPhonebookInfo( fr, count ); 
					  break;
			 case 'X': 
				      tryAgain = false;
					  break;
             
             default : 
				      cout << "Please Enter a Right choice" 
                           << endl;
                      break;
          }//end switch
          //cout << "Press enter to contiune : " << endl;
          cin.ignore(256 , '\n');
          
      } while( count < MAX_Phonebook  && tryAgain == true );
}


   
void main()
{

	cout<<"Do Your Code Here ,,,"<<endl;

}

