户人姓名:";Р cin>>nam;Р cout<<endl<<"请输入开户密码:";Р cin>>passw;Р cout<<endl<<"请输入存入金额:";Р cin>>m;Р while(m<=0)Р {Рcout<<"请输入正确的数字!"<<endl;Рcin>>m;Р }Рconsumer * acc = new consumer(id,nam,passw,m); Рaccount[acnum] = acc; Рcout<<"开户成功!!"<<endl<<endl; Рacnum++;Рsave();Рcin.get();Рreturn;Р}// ountР2).账户登陆Рvoid YH::ount()Р{Рint id; Рcout<<"请输入帐号:"; Рcin>>id; Рint flag = 1; Рint i = 0; Рwhile((i<acnum)&&(flag)) Р{ Рif(id==account[i]->get_id()) flag = 0; else i++; Р} Рif(flag) Р{ Рcout<<"帐号不存在!"<<endl<<endl; Рreturn; Р} Рcout<<"请输入密码:";Рstring passw;Рcin>>passw;Рif(passw!=account[i]->get_passwd()) return;Рaccount[i]->display();cin.get();cin.get();Рint n;Рdo{system("cls"); Рcout<<"请选择你要进行的操作:"<<endl<<"1)查看信息"<<endl<<"2)取款"<<endl<<"3)存款"<<endl<<"4)修改密码"<<endl<<"5)转账"<<endl<<"6)返回"<<endl;Рcin>>n;Рswitch(n)