};
struct record { book object; record *prior; record *next; };
book::book() //构造函数 { name='\\0'; type='\\0'; number='\\0'; email='\\0'; }
int book::enter1() //管理页面 { system(\ system(\ //背景与字体颜色 cout<
void book::addPer() //添加联系人 {
13
cout< void book::delPer() //删除联系人 { ofstream outfile(\ ifstream infile(\ if(!outfile||!infile) { cout<<\对不起!文件打开失败!\ exit(0); } string sign; cout< 14 C:商务类):\ //保存 getline(infile,str); if((sign==name)||(sign==number)) { cout< if(!out||!in) { cout<<\对不起!文件打开失败!\ exit(0); } while(getline(in,str)) { out< 15 void book::alter() //修改信息 { ifstream infile(\ if(!infile) { cout< if((p->object.name==sign)||(p->object.number==sign)) { if(flag) { cout< cout< < 16