freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

c課程設(shè)計(jì)小區(qū)物業(yè)管理系統(tǒng)-在線瀏覽

2024-11-07 23:31本頁(yè)面
  

【正文】 6) { cout年份錯(cuò)誤,請(qǐng)重新輸入 (20202056)endl年 :。 } year=e。amp。 cout月 :。 while(g1||g12) { cout月份錯(cuò)誤,請(qǐng)重新輸入 (112)endl月 :。 } mon=g。 if(mon==1||mon==3||mon==5||mon==7||mon==8||mon==10||mon==12) { cinf。 cinf。//輸入正確后,在再賦值 } if(mon==4||mon==6||mon==9||mon==11) { cinf。 cinf。//輸入正確后,在再賦值 } if(h==0amp。mon==2)//非閏年的二月 { cinf。 cinf。//輸入正確后,在再賦值 } if(h==1amp。mon==2)//閏年的二月 {cinf。 cinf。//輸入正確后,在再賦值 } 。 8 cout戶主 :nameendl。 cout用電量 :elecendl。 if(wuye0) cout您的物業(yè)費(fèi)預(yù)存了 wuyeRMBendl。 coutendl。 } void Zhuhu::write_num() { cout請(qǐng)輸入房號(hào) :endl。 } void Zhuhu::gongneng() {string k。 cout[1]買水 endl。 cout[3]交物業(yè)費(fèi) endl。 while(k!=1amp。k!=2amp。k!=3) { cout錯(cuò)誤命令,重新輸入 :。 9 } if(k==1) {cout請(qǐng)輸入買水量 endl。 water=water+a。} if(k==2) {cout請(qǐng)輸入買電量 :endl。 elec=elec+b。} if(k==3) {cout請(qǐng)輸入繳納的物業(yè)費(fèi)金額 :endl。 wuye=wuyec。 if(wuye0) cout您現(xiàn)在的物業(yè)費(fèi)預(yù)存了 :wuyeendl。} double Zhuhu::get_water() {return water。} string Zhuhu::get_name() {return name。} void duidiao_base(Zhuhu amp。p2)//交換基本信息函數(shù)(地址被拋棄) {int t。 char a[20]。=。 t=。=t。=。 t=。=t。=。 s=。=s。=。 strcpy(a,)。strcpy(,a)。 int main()//主函數(shù) { Zhuhu *head=NULL。 p1=new Zhuhu。 int i。//把數(shù)據(jù)庫(kù)里的 count 找出來(lái) //此時(shí)的 count 是上次操作后留下的 if(!open_count_file)//測(cè)試是否成功打開(kāi)文件 { cerropen error!endl。 } open_count_filecount。//取出后關(guān)閉文件 ifstream infile(,ios::binary)。 abort()。icount。//運(yùn)用二進(jìn)制文件操作函數(shù),方便快捷,不用重載 if(i==0) head=p1。 if(i==count1) p1next=NULL。 p1=p2。} ()。//建立數(shù)據(jù)庫(kù)函數(shù)聲明 void shuchu(Zhuhu *head)。 Zhuhu *shanchu(Zhuhu *head)。 void chaxun(Zhuhu *head)。 void paixu(Zhuhu *head)。 cout※※※※※※歡迎進(jìn)入小區(qū)物業(yè)管理系統(tǒng)※※※※※※※※ endl。 cout警告★★您的數(shù)據(jù)庫(kù)是空的,請(qǐng)首先建立數(shù)據(jù)庫(kù) !!!!★★ endl。} while(con!=0)//循環(huán)命令機(jī)制,這種比較方便,簡(jiǎn)單 { cout[1]建立數(shù)據(jù)庫(kù) endl。 cout[3]添加住戶 endl。 cout[5]收費(fèi)功能 endl。 cout[7]統(tǒng)計(jì)空房 endl。 cout[0]退出系統(tǒng),保存數(shù)據(jù) endl。 cincon。amp。amp。amp。amp。amp。amp。amp。amp。 cincon。 if(con==2) shuchu(head)。 if(con==4) head=shanchu(head)。 if(con==6) chaxun(head)。 if(con==8) paixu(head)。//必須退出 //務(wù)必退出程序,否則處理結(jié)果無(wú)法保存 }。 ofstream countfile(,ios::binary)。 abort()。//存儲(chǔ)人數(shù)到文件中 ()。 if(!outfile) { cerropen error!endl。 } 14 for(i=0。i++)//存儲(chǔ)處理后的所有記錄 { ((char *)p1,sizeof(Zhuhu))。 } ()。 } Zhuhu *jianli(Zhuhu *head) {Zhuhu *p1,*p2。 cout_____________________________________________________________________endl。 head=p1。 cout請(qǐng)輸入需要建立的住戶數(shù): endl。 for(int i=0。i++) { cout第 i+1位住戶信 息 endl。 p1=new Zhuhu。 else p2next=p1。 } if(i==n) p2next=NULL。 } return head。
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1