房屋租售管理系统_c程序设计(编辑修改稿)内容摘要:

(!in) { coutCannot open the file:\\\n。 return。 } string Num。 double Size。 double Hire。 double Buy。 bool State。 int y。 int m。 int d。 setFloor::iterator p=()。 inNumSizeHireBuyStateymd。 while(!()) { Floor ob(Num,Size,Hire,Buy,State,y,m,d)。 (ob)。 inNumSizeHireBuyStateymd。 } ()。 return。 } void Admin::ReadStaff() { ifstream in(C:\\)。 if(!in) { coutCannot open the file:\\\n。 return。 } string Number。 string Name。 char Sex。 string Tel。 double Commission。 setStaff::iterator p=()。 inNumberNameSexTelCommission。 while(!()) { Staff ob(Number,Name,Sex,Tel,Commission)。 (ob)。 inNumberNameSexTelCommission。 } ()。 return。 } void Admin::ReadStore() { ifstream in(C:\\)。 if(!in) { coutCannot open the file:\\\n。 return。 } string StoNum。 int StaffNum。 int FloorNum。 setStore::iterator p=()。 inStoNumStaffNumFloorNum。 while(!()) { Store ob(StoNum,StaffNum,FloorNum)。 (ob)。 inStoNumStaffNumFloorNum。 } ()。 return。 } void Admin::ReadClient() { ifstream in(C:\\)。 if(!in) { coutCannot open the file:\\\n。 return。 } string name。 string number。 char sex。 string tel。 int type。 setClient::iterator p=()。 innumbernamesexteltype。 while(!()) { Client ob(name,number,sex,tel,type)。 (ob)。 innumbernamesexteltype。 } ()。 return。 } void Admin::ShowFloorInfo() { system(cls)。 cout楼盘编号 楼盘面积 楼盘租金 楼盘售金 楼盘状态 租出 /售出日期 \n。 setFloor::iterator p=()。 while(p!=()) { cout pGetNum()\t pGetSize()\t pGetHire()\t pGetBuy()\t。 if(pGetState()) cout售 \t。 else cout租 \t。 Date bi=pGetDa()。 cout()()()endl。 p++。 } } void Admin::ShowStaffInfo() { system(cls)。 cout员工编号 \t 员工姓名 \t 员工性别 \t 员工电话 \t 员工工资 \n。 setStaff::iterator p=()。 while(p!=()) { cout pGetNumber()\t\tpGetName()\t\t。 if(pGetSex()==39。 f39。 ) cout男 \t\t。 else cout女 \t\t。 coutpGetTel()\t pGetCommission()\n。 p++。 } } void Admin::ShowStoreInfo() { system(cls)。 cout门店编号 员工数量 负责楼盘数量 \n。 setStore::iterator p=()。 while(p!=()) { cout pGetStoNum()\t pGetStaffNum()\t pGetFloorNum()endl。 p++。 } } void Admin::ShowClientInfo() { system(cls)。 cout客户编号 客户姓名 客户性别 客户电话 客户类别 \n。 setClient::iterator p=()。 while(p!=()) { cout pGetNumber()\t pGetName()\t。 if(pGetSex()==39。 f39。 ) cout男。 else cout女。 coutpGetTel()\t。 if(pGetType()==1) cout求租客户 \n。 else if(pGetType()==2) cout求售客户 \n。 else if(pGetType()==3) cout出租客户 \n。 else cout出售客户 \n。 p++。 } } void Admin::AddFloor() { char ch=39。 n39。 do { Floor ob(1,1,1,1,1,1,1,1)。 ()。 (ob)。 cout继续输入 ?(y/n)endl。 cinch。 }while(ch==39。 y39。 )。 } void Admin::AddStaff() { char ch=39。 n39。 do { Staff ob(1,1,39。 139。 ,1,1)。 ()。 (ob)。 cout继续输入 ?(y/n)endl。 cinch。 }while(ch==39。 y39。 )。 } void Admin::AddStore() { char ch=39。 n39。 do { Store ob(1,1,1)。 ()。 (ob)。 cout继续输入 ?(y/n)endl。 cinch。 }while(ch==39。 y39。 )。 } void Admin::AddClient() { char ch=39。 n39。 do { Client ob(1,1,39。 139。 ,1,1)。 ()。 (ob)。 cout继续输入 ?(y/n)endl。 cinch。 }while(ch == 39。 y39。 )。 } void Admin::HireRise() { int count=0。 int i。 double r=0。 system(cls)。 cout楼盘编号 楼盘面积 楼盘租金 楼盘售金 楼盘状态 租出 /售出日期 \n。 setFloor::iterator p=()。 while(p!=()) //count 用于楼盘计数 { count=count+1。 p++。 } for(i=0。 icount。 i++) { double min=100000000。 p=()。 while(p!=()) { if(pGetHire()minamp。 amp。 rpGetHire()) //提取大于上一轮 min 值的最小租金 min=pGetHire()。 p++。 } r=min。 //r 用于记录 min 值 p=()。 while(p!=()) { if(min==pGetHire()) //输出本轮最小租金的楼盘信息 { cout pGetNum()\t pGetSize()\t pGetHire()\t pGetBuy()\t。 if(pGetState()) cout售 \t。 else cout租 \t。 Date bi=pGetDa()。 cout()()()endl。 } p++。 } } } void Admin::HireFall() { int count=0。 int i。 system(cls)。 cout楼盘编号 楼盘面积 楼盘租金 楼盘售金 楼盘状态 租出 /售出日期 \n。 setFloor::iterator p=()。 while(p!=()) { count=count+1。 p++。 } double r=100000000。 for(i=0。 icount。 i++)。
阅读剩余 0%
本站所有文章资讯、展示的图片素材等内容均为注册用户上传(部分报媒/平媒内容转载自网络合作媒体),仅供学习参考。 用户通过本站上传、发布的任何内容的知识产权归属用户或原始著作权人所有。如有侵犯您的版权,请联系我们反馈本站将在三个工作日内改正。