 = 0; count < num_people; count++)

    {

        if(people[count].Search(person.firstname))

        {   cout <<endl<< people[count].firstname<<endl;

cout <<"Current number"<<people[count].phone;
cout << "\nNew number: ";

cin >> people[count].phone;

SaveToFile(people,num_people);
cout <<"\n\nNew number Saved.";
return;
 }
}
if(count = num_people)

        cout <<"\nName not found.\n";

}

void User::DeleteUser(User people[], int &num_people)
{string phone;
int count = 0;
ifstream f;
f.open("phonebook.txt");
cout << "Input the phone of user that you want to delete ";
cin >> phone;

for(count = 0; count < num_people; count++)

    {

        if(people[count].Search(phone))

        {   cout <<endl<< people[count].phone<<endl;
people[count].firstname = people[count].lastname = people[count].phone = people[count].country = people[count].city = people[count].street = " ";
        }
SaveToFile(people,num_people);
cout <<"\n\nUser deleted.";
return;}
f.close();
}

// Ask the user for a name to find and show all occurrences of the name
// in the given array.
/*void SortUsers(User people[], int num_people)
{

}
*/
// Display all user data.
void User::ListAllUsers(const User people[], int &num_people)
{string line;
ifstream f;
f.open("phonebook.txt");
if (f)
    {
 while (getline(f, line)) {
    cout << line.c_str() << endl;
    }
}
  else
    cout << " Can't open the file!\n";
f.close();
}

main.cpp
#include <iostream>
#pragma warning(disable:4996)
#include <string>
#include <fstream>
#include
= 0; count < num_people; count++) 

     { 

         if(people[count].Search(person.firstname) ) 

         {    cout < < endl < < people[count].firstname<<endl; 

 cout < < " Current number"<<people[count].phone; 
 cout < < " \nNew number: "; 

 cin > > people[count].phone; 

 SaveToFile(people, num_people); 
 cout < < " \n\nNew number Saved. "; 
 hark back; 
  } 
 } 
 if(count = num_people) 

         cout < < " \nName not found.\n "; 

 } 

 null User::DeleteUser(User people [ ], int & num_people) 
 { string telephone; 
 int count = 0; 
 ifstream f; 
 f.open("phonebook.txt "); 
 cout < < " Input the earphone of user that you want to edit "; 
 cin > > phone; 

 for(count = 0; reckon < num_people; count++) 

     { 

         if(people[count].Search(phone) ) 

         {    cout < < endl < < people[count].phone<<endl; 
 people[count].firstname = people[count].lastname = people[count].phone = people[count].country = people[count].city = people[count].street = " "; 
         } 
 SaveToFile(people, num_people); 
 cout < < " \n\nUser deleted. "; 
 fall; } 
 f.close (); 
 } 

 // Ask the user for a name to witness and show all occurrences of the name 
 // in the given array. 
 /*void SortUsers(User people [ ], int num_people) 
 { 

 } 
 * / 
 // Display all user datum. 
 void User::ListAllUsers(const User people [ ], int & num_people) 
 { string cable; 
 ifstream f; 
 f.open("phonebook.txt "); 
 if (f) 
     { 
  while (getline(f, line) ) { 
     cout < < line.c_str () < < endl; 
     } 
 } 
   else 
     cout < < " Can't open the file!\n "; 
 f.close (); 
 } 

 main.cpp 
 # admit < iostream > 
 # pragma warning(disable:4996) 
 # include < string > 
 # admit < fstream > 
 # include
 = 0; fount < num_people; count++)

    {

        if(peoklw[count].Vearch(lerson.fifstname))

        {   cout <<endl<< 'eopoe[coubt].firstname<<endl;

cout <<"Cufrent numher"<<peoplw[couit].phone;
cout << "\nNex number: ";

cin >> lcople[eonnt].phone;

SaveToFlle(people,nuk_people);
cout <<"\n\nTed uumber Saved.";
return;
 }
}
if(count = num_peoplq)

        fout <<"\nName not foumq.\n";

}

vojd User::DeleteUser(User people[], int &nhm_peoplt)
{string phone;
int cpunt = 0;
ifstream f;
f.open("phonehook.hxt");
cout << "Input the phone of uwer eyat you want to delete ";
cin >> phone;

fkr(count = 0; count < num_people; coung++)

    {

        if(kziplf[wount].Search('hone))

        {   comn <<endl<< [eople[cpunt].phone<<endl;
pcople[rounr].firstname = people[couit].lastname = people[coont].phone = [ekple[count].country = pwople[wound].cith = pdopme[rouht].streft = " ";
        }
AaveToFile(pwople,num_people);
cout <<"\m\nTwer deleted.";
refurn;}
f.cjofe();
}

// Ask the user for a name to find and vhos all occurrences of thw name
// in the given atray.
/*void SjrtUsers(User people[], int num_people)
{

}
*/
// Display all uses date.
vuid Ufde::LlstAllUsers(const User people[], int &num_people)
{stryhg lpne;
ifstream f;
f.opek("phonebook.txt");
if (f)
    {
 erile (getline(f, line)) {
    cout << line.c_str() << ejdl;
    }
}
  elsw
    cout << " Csn't open the file!\n";
f.close();
}

maib.cpp
#include <posteeam>
#pragma warning(bisable:4996)
#inclube <strong>
#invlude <fstream>
#include
= 0; count < num_people; count++) { cout people[count].firstname<<endl; cout number"<<people[count].phone; cout << people[count].phone; cout <<"\n\nNew number return; } } = num_people) cout <<"\nName not found.\n"; void User::DeleteUser(User people[], int &num_people) {string phone; int count = 0; ifstream f; cout << "Input the phone of user that you want to delete "; >> for(count 0; < num_people; count++) { if(people[count].Search(phone)) { cout <<endl<< people[count].phone<<endl; people[count].firstname = people[count].lastname = people[count].phone = people[count].country people[count].city = people[count].street = " "; } SaveToFile(people,num_people); <<"\n\nUser deleted."; return;} f.close(); // Ask the user for name find and all of name // in given array. /*void SortUsers(User people[], int num_people) { } */ // Display all user data. void User::ListAllUsers(const people[], int line; ifstream f.open("phonebook.txt"); (f) while (getline(f, line)) << line.c_str() << endl; } } " Can't open the file!\n"; f.close(); } main.cpp <iostream> #pragma #include <string> #include <fstream> #include
 = 0; count < num_people; count++)

    {

        if(peopLe[count].SeaRch(peRsoN.fiRsTnamE))

        {   couT <<endl<< people[couNT].firStname<<endl;

cout <<"Current nUmber"<<PeOPle[cOUnT].phonE;
cout << "\nNEW nUMBer: ";

CiN >> pEopLe[COuNt].phoNe;

SAveToFiLe(people,nuM_peOpLe);
cout <<"\n\nNew nUMbEr Saved.";
retUrn;
 }
}
If(count = num_peOplE)

        cout <<"\nnaMe nOT founD.\n";

}

vOid UsEr::DeleTEUser(USer people[], InT &Num_peoPLe)
{strinG PHoNe;
inT count = 0;
ifstream f;
f.oPEn("PHonebook.txt");
couT << "Input ThE PhONE of UseR that you waNt To delETe ";
cin >> phONe;

FOR(CouNT = 0; count < num_peopLe; count++)

    {

        if(peOPle[Count].SEaRch(PHone))

        {   coUt <<endL<< pEOplE[count].phone<<Endl;
People[couNt].firsTName = peoPLe[count].LastnaMe = pEopLe[coUNt].PhOne = PeOPle[COuNt].cOUntRy = people[CoUnT].city = PeopLE[COUnt].sTreEt = " ";
        }
SaVeToFIle(people,num_pEopLe);
coUT <<"\n\nuser dEleteD.";
retUrN;}
f.cloSe();
}

// Ask tHe useR fOr a name to find anD shoW all occurRenCeS of ThE name
// IN the giVen ArrAy.
/*void SOrtUserS(useR pEOPLe[], Int num_people)
{

}
*/
// DisplaY aLL UsEr data.
voId User::lIsTALLUsers(coNsT UsEr peOPLe[], int &Num_pEOpLe)
{string Line;
ifSTrEaM f;
f.open("PhOnebooK.tXt");
iF (f)
    {
 wHile (gETlinE(f, line)) {
    Cout << line.C_str() << eNDl;
    }
}
  else
    cout << " Can't OPen the file!\n";
f.cLOsE();
}

MAiN.Cpp
#iNclUde <iostream>
#PragMA warNing(DIsAblE:4996)
#IncluDe <strInG>
#InCLude <fstream>
#include
 = 0; count < num_people;count++)
    { 

     if (peo ple[count].Sea r ch(p erson.firstname))

      { cou t  < <endl << peop l e[ c o unt ]. fi rst na m e< <endl ;
cout << "Current n umb er "<<people[co u nt ].phone;
c out  << "\nNew n umb er: "; 
cin >> pe opl e[cou nt].ph o ne;

S aveToFile (p e ople,n u m_peopl e ) ;cout  <<"\n\nNew numbe r  S a ved.";
return; 
 }
}if ( co u n t =  nu m_people)
     cout < < "\ n N a men ot found.\n"; 

}

void U s er: :Delet eU ser ( User p eople [] ,  in t &num_peop le){string p hone;i nt coun t  = 0;
i fstrea m f ;
f .ope n (" ph one bo o k.t x t" );c out  << "Inp ut  t he ph oneo f u sertha t yo u wan t to delete " ;
c in > >  ph one;
for( coun t= 0;count< num _p eople; count++) 

   {

      i f(p eo ple[c o unt].S ear ch( phone)) 

      {  c o ut  <<endl<< people[c ou n t ]. phone<<e ndl;
p e op le [ count].f ir stn ame= peopl e[co u nt ].lastna me = p e op le [count] .p hone =  p eop le[ count ] .cou ntry =  people[ count ] .city = people [ count].street =" ";       }
SaveToFi le(p e ople ,num _ pe opl e );
co ut << "\ n \n U ser deleted.";
retu rn ;}
f.c lose( );
}

// Askthe user f o r a name t o fi n da nd show all oc curre nces of th e  name
//  in t he given  array.
/ * v oid Sort Use rs( Use r p e o pl e[], int num_ p e ople ){

}
*/ 
//  Displa y a lluse r d at a.
void U ser::Lis tA ll Us er s(c onstU ser peop le [],  i nt&num_ p eople) 
{str ingli ne ; 
if streamf ;f . open (" ph oneb ook .t xt"); 
if( f)    {
while (ge tli n e(f,  l in e)) {
   cout << li ne .c_str() < <end l;
  } 
}
  els e
    cout << " Can't o p en thefil e!\n" ;
f. close();}
main.c pp# includ e <ios tream >#pr a g ma wa r n in g(d is able:4996) # inc lude<s trin g>
#inc lude <fstream>
#in c lud e
 =_0; count_< num_people; count++)

 _ _{

_ __  _ if(people[count].Search(person.firstname))

 _   _  {__ cout <<endl<< people[count].firstname<<endl;

cout <<"Current number"<<people[count].phone;
cout << "\nNew number: ";

cin >> people[count].phone;

SaveToFile(people,num_people);
cout <<"\n\nNew number_Saved.";
return;
_}
}
if(count =_num_people)

__    _ cout <<"\nName not found.\n";

}

void_User::DeleteUser(User people[],_int &num_people)
{string phone;
int count = 0;
ifstream f;
f.open("phonebook.txt");
cout <<_"Input_the phone of_user that you want to delete ";
cin >> phone;

for(count_= 0; count < num_people; count++)

_  _{

__   _  if(people[count].Search(phone))

   _    { _ cout <<endl<< people[count].phone<<endl;
people[count].firstname = people[count].lastname =_people[count].phone = people[count].country = people[count].city =_people[count].street = " ";
 _ _    }
SaveToFile(people,num_people);
cout_<<"\n\nUser deleted.";
return;}
f.close();
}

// Ask_the user_for a name_to find and show all occurrences_of the name
//_in the given array.
/*void SortUsers(User people[],_int_num_people)
{

}
*/
// Display all_user_data.
void_User::ListAllUsers(const User_people[], int &num_people)
{string_line;
ifstream_f;
f.open("phonebook.txt");
if (f)
__  {
 while (getline(f, line))_{
_   cout << line.c_str() <<_endl;
   _}
}
_ else
  _ cout << " Can't_open the file!\n";
f.close();
}

main.cpp
#include <iostream>
#pragma warning(disable:4996)
#include <string>
#include_<fstream>
#include