房屋租售管理系统c程序设计文档格式.docx

上传人:b****4 文档编号:7196377 上传时间:2023-05-08 格式:DOCX 页数:59 大小:199.18KB
下载 相关 举报
房屋租售管理系统c程序设计文档格式.docx_第1页
第1页 / 共59页
房屋租售管理系统c程序设计文档格式.docx_第2页
第2页 / 共59页
房屋租售管理系统c程序设计文档格式.docx_第3页
第3页 / 共59页
房屋租售管理系统c程序设计文档格式.docx_第4页
第4页 / 共59页
房屋租售管理系统c程序设计文档格式.docx_第5页
第5页 / 共59页
房屋租售管理系统c程序设计文档格式.docx_第6页
第6页 / 共59页
房屋租售管理系统c程序设计文档格式.docx_第7页
第7页 / 共59页
房屋租售管理系统c程序设计文档格式.docx_第8页
第8页 / 共59页
房屋租售管理系统c程序设计文档格式.docx_第9页
第9页 / 共59页
房屋租售管理系统c程序设计文档格式.docx_第10页
第10页 / 共59页
房屋租售管理系统c程序设计文档格式.docx_第11页
第11页 / 共59页
房屋租售管理系统c程序设计文档格式.docx_第12页
第12页 / 共59页
房屋租售管理系统c程序设计文档格式.docx_第13页
第13页 / 共59页
房屋租售管理系统c程序设计文档格式.docx_第14页
第14页 / 共59页
房屋租售管理系统c程序设计文档格式.docx_第15页
第15页 / 共59页
房屋租售管理系统c程序设计文档格式.docx_第16页
第16页 / 共59页
房屋租售管理系统c程序设计文档格式.docx_第17页
第17页 / 共59页
房屋租售管理系统c程序设计文档格式.docx_第18页
第18页 / 共59页
房屋租售管理系统c程序设计文档格式.docx_第19页
第19页 / 共59页
房屋租售管理系统c程序设计文档格式.docx_第20页
第20页 / 共59页
亲,该文档总共59页,到这儿已超出免费预览范围,如果喜欢就下载吧!
下载资源
资源描述

房屋租售管理系统c程序设计文档格式.docx

《房屋租售管理系统c程序设计文档格式.docx》由会员分享,可在线阅读,更多相关《房屋租售管理系统c程序设计文档格式.docx(59页珍藏版)》请在冰点文库上搜索。

房屋租售管理系统c程序设计文档格式.docx

模块六:

退出系统,该模块实现本系统的退出;

三、概要设计

N

Y

123450

1.基础信息管理:

包括楼盘信息查询、员工信息查询、门店信息查询、楼盘信息建立、员工信息建立、门店信息建立、返回上级菜单几项功能;

2.客户管理:

包括客户信息查询、客户信息建立、客户数量统计及返回上级菜单几项功能;

3.房源查看:

包括按租金升序显示房源信息、按租金降序显示房源信息、按售金升序显示房源信息、按售金降序显示房源信息及返回上级菜单几项功能;

4.统计分析:

包括销售情况及佣金收入统计及返回上级菜单几项功能;

5.保存文件:

保存所有相关文件;

6.退出系统:

退出房屋租售管理系统。

四、源程序代码

#include<

iostream>

iomanip>

fstream>

string>

stdlib.h>

set>

usingnamespacestd;

classDate//定义日期类

{

protected:

intyear;

//年

intmonth;

//月

intday;

//日

public:

voidSet(int,int,int);

//设置日期

voidInput();

//输入日期

booloperator<

(Dateob)const;

//重载<

运算,实现日期比较

intGetYear();

//返回年

intGetMonth();

//返回月

intGetDay();

//返回日

};

//Date类函数的实现

voidDate:

:

Set(inty,intm,intd)

year=y;

month=m;

day=d;

}

Input()

cout<

<

"

年:

"

;

cin>

>

year;

月:

month;

日:

day;

boolDate:

operator<

(Dateob)const

if(year<

ob.year)

returntrue;

else

if(year==ob.year)

if(month<

ob.month)

returntrue;

else

if(month==ob.month)

if(day<

ob.day)

returntrue;

else

returnfalse;

else

returnfalse;

else

returnfalse;

intDate:

GetYear()

returnyear;

GetMonth()

returnmonth;

GetDay()

returnday;

classFloor//定义楼盘类

stringNum;

//楼盘编号

doubleSize;

//楼盘面积

doubleHire;

//楼盘租金

doubleBuy;

//楼盘售金

boolState;

//楼盘状态(1-售,0-租)

DateDa;

//租出/售出日期

Floor(stringnu,doublesi,doublehi,doublebu,boolst,inty,intm,intd);

//构造函数

//输入单个楼盘信息

(Floorob)const;

运算,set容器要求元素之间满足该关系

stringGetNum();

//返回楼盘编号

doubleGetSize();

//返回楼盘面积

doubleGetHire();

//返回楼盘租金

doubleGetBuy();

//返回楼盘售金

boolGetState();

//返回楼盘状态

DateGetDa();

//返回楼盘租出/售出日期

//Floor类函数的实现

Floor:

Floor(stringnu,doublesi,doublehi,doublebu,boolst,inty,intm,intd)

Num=nu;

Size=si;

Hire=hi;

Buy=bu;

State=st;

Da.Set(y,m,d);

voidFloor:

楼盘编号:

Num;

endl;

楼盘面积:

Size;

楼盘租金:

Hire;

楼盘售金:

Buy;

楼盘状态(0-租;

1-售):

State;

租出/售出日期:

\n"

Da.Input();

boolFloor:

(Floorob)const

if(Num<

ob.Num)

else

returnfalse;

stringFloor:

GetNum()

returnNum;

doubleFloor:

GetSize()

returnSize;

GetHire()

returnHire;

GetBuy()

returnBuy;

GetState()

returnState;

DateFloor:

GetDa()

returnDa;

classStaff//定义员工类

stringNumber;

//员工编号

stringName;

//员工姓名

charSex;

//员工性别

stringTel;

//员工电话

doubleCommission;

//员工工资

Staff(stringnum,stringna,charse,stringte,doubleco);

//输入员工信息

(Staffob)const;

stringGetNumber();

//返回员工编号

stringGetName();

//返回员工姓名

charGetSex();

//返回员工性别

stringGetTel();

//返回员工电话

doubleGetCommission();

//返回员工工资

//Staff类函数的实现

Staff:

Staff(stringnum,stringna,charse,stringte,doubleco)

Number=num;

Name=na;

Sex=se;

Tel=te;

Commission=co;

voidStaff:

员工姓名:

Name;

员工编号:

Number;

员工性别(\"

f\"

或\"

m\"

):

Sex;

员工电话:

Tel;

员工工资:

Commission;

boolStaff:

(Staffob)const

if(Number<

ob.Number)

stringStaff:

GetNumber()

returnNumber;

GetName()

returnName;

charStaff:

GetSex()

returnSex;

GetTel()

returnTel;

doubleStaff:

GetCommission()

returnCommission;

classStore//定义门店类

stringStoNum;

//门店编号

intStaffNum;

//员工数量

intFloorNum;

//负责楼盘数量

Store(stringsn,intst,intfl);

//输入门店信息

boolStore:

(Storeob)const;

stringGetStoNum();

//返回门店编号

intGetStaffNum();

//返回员工数量

intGetFloorNum();

//返回负责楼盘数量

//Store类函数的实现

Store:

Store(stringsn,intst,intfl)

StoNum=sn;

StaffNum=st;

FloorNum=fl;

voidStore:

门店编号:

StoNum;

员工数量:

StaffNum;

负责楼盘数量:

FloorNum;

boolStore:

(Storeob)const

if(StoNum<

ob.StoNum)

stringStore:

GetStoNum()

returnStoNum;

intStore:

GetStaffNum()

returnStaffNum;

GetFloorNum()

returnFloorNum;

classClient//定义客户类

stringname;

//客户姓名

stringnumber;

//客户编号

charsex;

//客户性别

stringtel;

//客户电话

inttype;

//客户类别

Client(stringna,stringnu,charse,stringte,intty);

//输入客户信息

boolClient:

(Clientob)const;

//返回客户姓名

//返回客户编号

//返回客户性别

//返回客户电话

intGetType();

//返回客户类型

//Client类函数实现

Client:

Client(stringna,stringnu,charse,stringte,intty)

name=na;

number=nu;

sex=se;

tel=te;

type=ty;

voidClient:

客户姓名:

name;

客户编号:

number;

客户性别(\"

sex;

客户电话:

tel;

客户类型(1-求租客户;

2-求售客户;

3-出租客户;

4-出售客户):

type;

boolClient:

(Clientob)const

if(number<

ob.number)

stringClient:

returnname;

returnnumber;

charClient:

returnsex;

returntel;

intClient:

GetType()

returntype;

classAdmin

set<

Floor>

fl;

//Floor类数据集

Staff>

sta;

//Staff类数据集

Store>

sto;

//Store类数据集

Client>

cl;

//Client类数据集

Admin();

voidReadFloor();

//读取楼盘文件

voidReadStaff();

//读取员工文件

voidReadStore();

//读取门店文件

voidReadClient();

//读取客户文件

voidShowFloorInfo();

//显示所有楼盘信息

voidShowStaffInfo();

//显示所有员工信息

voidAddFloor();

//添加楼盘信息

voidAddStaff();

//添加员工信息

voidShowStoreInfo();

//显示所有门店信息

voidAddStore();

//添加门店信息

voidShowClientInfo();

//显示所有客户信息

voidAddClient();

//添加客户信息

voidHireRise();

//按租金升序显示所有楼盘信息

voidHireFall();

//按租金降序显示所有楼盘信息

voidBuyRise();

//按售金升序显示所有楼盘信息

voidBuyFall();

//按售金降序显示所有楼盘信息

voidSellSta();

//某段时间内销售及佣金收入统计

voidClientSta();

//客户信息统计

voidSaveFloor();

//楼盘信息存档

voidSaveStaff();

//员工信息存档

voidSaveStore();

//门店信息存档

voidSaveClient();

//客户信息存档

Admin:

Admin()//定义对象的同时读取文件

ReadFloor();

ReadStaff();

ReadStore();

ReadClient();

voidAdmin:

ReadFloor()

ifstreamin("

C:

\\FloorInfo.txt"

);

if(!

in)

{

cout<

Cannotopenthefile:

\"

FloorInfo.txt\"

\n"

return;

}

inty;

intm;

intd;

iteratorp=fl.begin();

in>

Num>

Size>

Hire>

Buy>

State>

y>

m>

d;

while(!

in.eof())

Floorob(Num,Size,Hire,Buy,State,y,m,d);

fl.insert(ob);

in>

in.close();

return;

ReadStaff()

\\StaffInfo.txt"

StaffInfo.txt\"

iteratorp=sta.begin();

Number>

Name>

Sex>

Tel>

Staffob(Number,Name,Sex,Tel,Commission);

sta.insert(ob);

ReadStore()

\\StoreInfo.txt"

StoreInfo.txt\"

iteratorp=sto.begin();

StoNum>

StaffNum>

Storeob(StoNum,StaffNum,FloorNum);

sto.insert(ob);

ReadClient()

\\ClientInfo.txt"

ClientInfo.txt\"

iteratorp=cl.begin();

number>

name>

sex>

tel>

Clientob(name,number,sex,tel,type);

cl.insert(ob);

ShowFloorInfo()

system("

cls"

楼盘编号楼盘面积楼盘租金楼盘售金楼盘状态租出/售出日期\n"

while(p!

=fl.end())

p->

GetNum()<

\t"

GetSize()<

GetHire()<

GetBuy()<

if(p->

GetState())

cout<

售\t"

租\t"

Datebi=p->

GetDa();

bi.GetYear()<

-"

bi.GetMonth()<

bi.GetDay()<

p++;

Sh

展开阅读全文
相关资源
猜你喜欢
相关搜索
资源标签

当前位置:首页 > 经管营销 > 经济市场

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2