c课程设计小区物业管理系统内容摘要:
捷,不用重载 if(i==0) head=p1。 p2=new Zhuhu。 if(i==count1) p1next=NULL。 else {p1next=p2。 p1=p2。 }。 } ()。 //关闭文件,防止误操作 Zhuhu *jianli(Zhuhu *head)。 //建立数据库函数声明 void shuchu(Zhuhu *head)。 Zhuhu *charu(Zhuhu *head)。 Zhuhu *shanchu(Zhuhu *head)。 void zhixing(Zhuhu *head)。 void chaxun(Zhuhu *head)。 //查询功能函数 void tongji(Zhuhu *head)。 void paixu(Zhuhu *head)。 string con=1。 cout※※※※※※欢迎进入小区物业管理系统※※※※※※※※ endl。 if(count==0) 12 {cout_______________________________________________________________endl。 cout警告★★您的数据库是空的,请首先建立数据库 !!!!★★ endl。 cout_______________________________________________________________endl。 } while(con!=0)//循环命令机制,这种比较方便,简单 { cout[1]建立数据库 endl。 cout[2]输出所有信息 endl。 cout[3]添加住户 endl。 cout[4]删除住户 endl。 cout[5]收费功能 endl。 cout[6]查询功能 endl。 cout[7]统计空房 endl。 cout[8]排序功能 endl。 cout[0]退出系统,保存数据 endl。 cout***********我的命令是 ********:。 cincon。 while(con!=1amp。 amp。 con!=2amp。 amp。 con!=3amp。 amp。 con!=4amp。 amp。 con!=5amp。 amp。 con!=6amp。 amp。 con!=7amp。 amp。 con!=8amp。 amp。 con!=0) { cout错误命令,重新输入 :。 cincon。 } if(con==1) head=jianli(head)。 if(con==2) shuchu(head)。 if(con==3) 13 head=charu(head)。 if(con==4) head=shanchu(head)。 if(con==5) zhixing(head)。 if(con==6) chaxun(head)。 if(con==7) tongji(head)。 if(con==8) paixu(head)。 cout提示 [*操作完毕请选择退出程序 (选择命令 [0]),否则您的数据将不能保存 !*]endl。 //必须退出 //务必退出程序,否则处理结果无法保存 }。 p1=head。 ofstream countfile(,ios::binary)。 if(!countfile) { cerropen error!endl。 abort()。 } countfilecount。 //存储人数到文件中 ()。 ofstream outfile(,ios::binary)。 if(!outfile) { cerropen error!endl。 abort()。 } 14 for(i=0。 icount。 i++)//存储处理后的所有记录 { ((char *)p1,sizeof(Zhuhu))。 p1=p1next。 } ()。 return 0。 } Zhuhu *jianli(Zhuhu *head) {Zhuhu *p1,*p2。 if(count0)//此时不允许录入数据,只能使用添加功能录入 {cout警告 !!您的数据库已经存在 ,若要重新建立,请清除 zhuhu 文件内容并使count 文件归 0endl。 cout_____________________________________________________________________endl。 } if(count==0) { p1=p2=new Zhuhu。 head=p1。 int n。 cout请输入需要建立的住户数: endl。 cinn。 for(int i=0。 in。 i++) { cout第 i+1位住户信 息 endl。 p1input_message()。 p1=new Zhuhu。 if(i==n1) p2next=NULL。 else p2next=p1。 15 p2=p1。 } if(i==n) p2next=NULL。 count=n。 } return head。 } void shuchu(Zhuhu *head) {Zhuhu *p1。 p1=head。 while(p1!=NULL) { p1show_message()。 p1=p1next。 }。 } Zhuhu *charu(Zhuhu *head) { cout请输入要添加住户的详细信息: endl。 Zhuhu *p0,*p1,*p2,*p3。 p3=p1=head。c课程设计小区物业管理系统
相关推荐
................................................................ 42 国家投资产业环境 ............................................................................. 42 产业和产业政策 .................................
确定为一级红色。 红色系统自动提醒、报警,短信发送至相关人员手机。 市级管理员报请有关领导审核后,可以发布预警通报。 提供分析的字段是: ( 1) 矛盾纠纷类型 ( 2) 发生时间 ( 3) 参与人数 ( 4) 纠纷等级 ( 5) 纠纷占比 对当前或一段时间矛盾纠纷居高不下的,分析原因、形成分析报告、落实具体措施。 对在规定期限内未能 调处结案的矛盾纠纷,系统自动提 22 醒、报警
******************************************************************** ( 2)在考生文件夹下有一个工程文件 ,相应的窗体文件为。 在窗体上有两个命令按钮,其名称分别为 Command Command2,一个标签控件,其名称为 Label1,一个计时器控件,其名称为 Timer1,如图 1所示。 程序运行后,在命令按钮
()。 coutThe items of y is:endl。 ()。 coutendl。 coutThe result of x+y is:endl。 result=x+y。 ()。 coutendl。 coutThe result of x*y is:endl。 result=x*y。 ()。 coutendl。 更多资料下载尽在我的主页 coutEnter the item you
捏的材料和对象,而不是学者应该虚心倾听和尊重的智慧源泉与生活方式。 技术层面的操作能否成功,首先需要我们在伦理层面的清醒。 吕微 宗迪痛斥科学,爱东赞誉科学,二人讲的科学是不是一个层面的东西。 爱东说了,不是一个层面的,我讲的科学是技术层面的,你讲的科学是伦理层面的,井水不犯河水。 宗迪似乎也承认有“次要的”和“根本的”层次区别。 但他认为,爱东的论文既可 以从技术层面加以批评