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

正文內(nèi)容

個人銀行管理系統(tǒng)c課設(shè)(編輯修改稿)

2025-06-19 01:10 本頁面
 

【文章內(nèi)容簡介】 。 string desc,pwd,pass。 cincmd。 switch(cmd){ 遼 寧 工 業(yè) 大 學(xué) 課 程 設(shè) 計(jì) 說 明 書(論 文) 7 case39。d39。: //存入現(xiàn)金 cout請選擇您的賬戶序號 (0/1/2):。 cinindex。 if(index==0||index==1||index==2){ cout請輸入您的存款金額 :。 cinamount。 accounts[index]deposit(date,amount,desc)。 } else cout賬戶號錯誤! 。 break。 case39。w39。: //取出現(xiàn)金 cout請選擇您的賬戶序號 (0/1/2):。 cinindex。 cout請輸入您的密碼 :。 cinpwd。 pass=accounts[index]getPassword()。 if((pwd)==0){ cout密碼正確 !endl。 cout請輸入您的取款金額 :。 cinamount。 accounts[index]withdraw(date,amount,desc)。 } else cout您輸入的密碼錯誤 !endl。 break。 case39。s39。: //查詢各賬戶信息 for( i=0。in。i++){ cout[i]。 accounts[i]show()。 coutendl。 } break。 case39。c39。: //改變?nèi)掌? 遼 寧 工 業(yè) 大 學(xué) 課 程 設(shè) 計(jì) 說 明 書(論 文) 8 cout輸入要改的日期 :。 cinday。 coutendl。 if(day()) coutYou connot specify a previous day。 else if(day()) coutInvalid day。 else date=Date((),(),day)。 break。 case39。n39。: //進(jìn)入下個月 if(()==12) date=Date(()+1,1,1)。 else date=Date((),()+1,1)。 for(int k=0。kn。k++) accounts[k]settle(date)。 break。 } }while(cmd!=39。e39。)。 return 0。 } include include cmath include iostream using namespace std。 double Account::total=0。 //Account 類的實(shí)現(xiàn) Account::Account(const Date amp。date,const string amp。id,const string amp。pwd):id(id),balance(0),password(pwd){ ()。 cout\tid createdendl。 } void Account::record(const Date amp。date,double amount,const string amp。desc){ 遼 寧 工 業(yè) 大 學(xué) 課 程 設(shè) 計(jì) 說 明 書(論 文) 9 amount=floor(amount*100+)/100。 //保留小數(shù)點(diǎn)后兩位 balance+=amount。 total+=amount。 ()。 cout\tid\tamount\tbalance\tdescendl。 } void Account::show() const {coutid\tBalance:balance。} void Account::error(const string amp。msg)const{ coutError(id):msgendl。 } //SavingsAccount 類相關(guān)成員函數(shù)的實(shí)現(xiàn) SavingsAccount::SavingsAccount(const Date amp。date,const std::string amp。id,double rate,const std::string amp。password) :Account(date,id,password),rate(rate),acc(date,0){} void SavingsAccount::deposit(const Date amp。date,double amount,const string amp。desc){ record(date,amount,desc)。 (date,getBalance())。 } void SavingsAccount::withdraw(const Date amp。date,double amount,const string amp。desc){ if(amountgetBalance()){ error(not enough money)。 } else{ record(date,amount,desc)。 (date,getBalance())。 } } void SavingsAccount::settle(const Date amp。date){ if(()==1){ double interest=(date)*rate/(dateDate(()1,1,1))。 遼 寧 工 業(yè) 大 學(xué) 課 程 設(shè) 計(jì) 說 明 書(論 文) 10 //計(jì)算年息 if(interest!=0) record(date,interest,interest)。 (date,getBalance())。 } } //CreditAccount 類相關(guān)成員函數(shù)的實(shí)現(xiàn) CreditAccount::CreditAccount(const Date amp。date,const string amp。id,double credit,double rate,double fee,const std::string amp。password) :Account(date,id,password),credit(credit),rate(rate),fee(fee),acc(date,0){} void CreditAccount::deposit(const Date amp。date,double amount,const string amp。desc){ record(date,amount,desc)。 (date,getBalance())。 } void CreditAccount::withdraw(const Date amp。date,double amount,const string amp。desc){ if(amountgetBalance()credit){ error(not enough money)。 } else{ record(date,amount,desc)。 (date,getDebt())。 } } void CreditAccount::settle(const Date amp。date){ double interest=(date)*rate。 if(int
點(diǎn)擊復(fù)制文檔內(nèi)容
醫(yī)療健康相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1