#include <iostream>
using namespace std;
#include <string>
#define MAX 1000
void mune()
{
cout << "***********************" << endl;
cout << "*****1.添加 2.修改*****" << endl;
cout << "*****3.查看 4.删除*****" << endl;
cout << "*****5.查找 6.清空*****" << endl;
cout << "****** 0. 退出 ******" << endl;
cout << "***********************" << endl;
}
struct person
{
string p_name;
int p_age;
string p_sex;
int p_phone;
string p_addr;
};
struct addbooks
{
struct person pArr[MAX];
int size;
};
void addperson(struct addbooks* p,int* sz)
{
if(p->size==MAX)
{
cout << "通讯录已满" << endl;
return ;
}
else
{
string Name;
cout << "名字>:" << endl;
cin >>Name;
p->pArr[*sz].p_name=Name;
cout << "年龄>:" << endl;
int age;
cin >>age;
p->pArr[*sz].p_age=age;
cout << "性别>:" << endl;
string sex;
cin >>sex;
p->pArr[*sz].p_sex=sex;
cout << "电话>:" <&