cout <
cin >>p->object.number; fflush(stdin); cout <<\类型:\
cin >>p->object.type; fflush(stdin); cout <<\邮箱:\
cin >>p->object.email; fflush(stdin); break; } p=p->next; }
if(flag) {
        cout<         ofstream out(\                  if (!out)         {              cout <         p=H;          while (p!=NULL)         {              out< 17                 <<\                <<\            p=p->next;         }                   out.close();          cout< void book::call()                         //拨号功能 {  ifstream infile (\ if(!infile)  {   cout< 18   }  system(\}   void book::showall()           //显示所有联系人信息 {  ifstream infile(\    if(!infile)  {   cout<<\对不起!文件打开失败!\  system(\ }   string record;  bool flag=true;    while(getline(infile,record))  {   if(flag)   {    cout< void book::showA()                  //显示类型A {        ifstream infile(\        if (!infile)     {          cout< 19          system(\             }                 bool flag=true;               while(infile>>name>>number>>type>>email)     {                 if(type==\        {    cout< void book::showB()                        //显示类型B {  ifstream infile(\    if(!infile)     {          cout<     bool flag = true;       while(infile>>name>>number>>type>>email)     {          if(type==\        {              cout< 20