);ounttemp2;while(infile2>>temp2.id>>temp2.password)ma.push_back(temp2);infile2.close();}account_oper::~account_oper(){ofstreamoutfile("yonghu_zhanghu.txt",ios::out);for(uai=ua.begin();uai!=ua.end();++uai)outfile<<uai->id<<''<<uai->password<<endl;outfile.close();ofstreamoutfile2("guanli_zhanghu.txt",ios::out);for(mai=ma.begin();mai!=ma.end();++mai)outfile2<<mai->id<<''<<mai->password<<endl;outfile2.close();}ount_oper::ount(stringid,stringpass){cout<<"您正在为手机号为:"<<id<<"修改密码"<<endl;//待修改cout<<"请输入原密码:"<<endl;stringold_pass,new_pass;cin>>old_pass;if(old_pass==pass){cout<<"请输入新密码:"<<endl;cin>>new_pass;ount;ount.id=id;ount.password=new_pass;for(f.uai=f.ua.begin();f.uai!=f.ua.end();++f.uai){if(f.uai->id==id&&f.uai->password==pass){f.ua.erase(f.uai);f.ua.push_back(ount);}}}elsecout<<"密码错误!"<<endl;