//4.查找联系人信息
void findPerson(Addressbooks * abs){
cout<<"请输入您要查找的姓名"<<endl;
string name;
cin>>name;
//判断你要找的人在不在
int ret=isExist(abs,name);
if(ret!=-1)
{
cout<<"姓名:"<<abs->PersonArray[ret].m_Name<<endl;
cout<<"性别:"<<abs->PersonArray[ret].m_Sex<<endl;
cout<<"年龄:"<<abs->PersonArray[ret].m_Age<<endl;
cout<<"电话:"<<abs->PersonArray[ret].m_Phone<<endl;
cout<<"住址:"<<abs->PersonArray[ret].m_Addr<<endl;
}
else{
cout<<"查无此人"<<endl;
}
system("pause");
system("cls");
}
08-13
390
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
08-13
216
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
11-26