實訓專案 銀行儲蓄系統

2021-07-03 21:46:31 字數 2964 閱讀 3064

main.c

/************************************** 

* *檔名稱:suffixtest.c

*檔案標識:無

*內容摘要:該**用於獲取滿足字尾要求的第乙個檔案

*其他說明:無

*當前版本:v1.0

*作 者:宋偉男

*完成日期:20150718

*問題描述:

*************************************/

#include #include "bank.h"

using namespace std;

/*主函式:*/

int main()

return 0;

}

bank.c

/************************************** 

* *檔名稱:suffixtest.c

*檔案標識:無

*內容摘要:該**用於獲取滿足字尾要求的第乙個檔案

*其他說明:無

*當前版本:v1.0

*作 者:宋偉男

*完成日期:20150718

*問題描述:

*************************************/

#include #include #include #include "bank.h"

#include using namespace std;

/*功能:用建構函式讀取檔案中儲存的業務資料

*/bank::bank()

n = i; //用靜態資料成員

infile.close();}/*

功能:用析構函式,在退出系統時,將資料儲存到檔案中

*/bank::~bank()

else

else if(users[who].status==1)}}

}}

}return;}/*

功能:掛失賬戶

*/void bank::reportloss()

else if (users[mid].account>id)

high=mid-1;

else

low=mid+1;

}if (index<0)

cout<<"該使用者不存在,本次操作失敗!"<

work.c

/**************************************

* *檔名稱:suffixtest.c

*檔案標識:無

*內容摘要:該**用於獲取滿足字尾要求的第乙個檔案

*其他說明:無

*當前版本:v1.0

*作 者:宋偉男

*完成日期:20150718

*問題描述:

*************************************/

#include #include #include #include #include #include #include "bank.h"

using namespace std;

/*功能:驗證使用者密碼

返回值:密碼正確,返回1;

不能通過密碼驗證,返回0

*/int pass()

spass[i]='\0';

fflush(stdin);

cout<0)

cout<<"超過3次將退出,你還可以嘗試"<>i;

if(i>=0 && i<=9)

break;

else

cout<<"請重新選擇功能"<

bank.h

/**************************************

* *檔名稱:suffixtest.c

*檔案標識:無

*內容摘要:該**用於獲取滿足字尾要求的第乙個檔案

*其他說明:無

*當前版本:v1.0

*作 者:宋偉男

*完成日期:20150718

*問題描述:

*************************************/

#ifndef bank_h_included

#define bank_h_included

#include using namespace std;

const int upnum=2000; //系統最多容納的使用者數

class bank;

class user

;class bank

;int pass(); //業務員登入

int chooseinmenu(); //顯示選單並由業務員選擇

int inputpassword(); //返回鍵盤輸入的密碼

#endif

user.c

/**************************************

* *檔名稱:suffixtest.c

*檔案標識:無

*內容摘要:該**用於獲取滿足字尾要求的第乙個檔案

*其他說明:無

*當前版本:v1.0

*作 者:宋偉男

*完成日期:20150718

*問題描述:

*************************************/

#include #include "bank.h"

using namespace std;

void user::setuser(int acc, string nam, int pw, double bal,int sta)

void user::showname()

{ cout<<"戶主姓名:"<

課程實訓 銀行儲蓄系統

檔名稱 main.cpp 完成日期 2015 年 7 月 17 日 版本號 v1.0 問題描述 在基礎的銀行系統上進行如下改進 1.用動態陣列 2.能夠記錄身份證號 家庭住址,等資訊 3.記錄使用者的每一筆業務 4.用二進位制檔案 main.cpp include include bank.h us...

程式設計實訓 銀行儲蓄系統

標頭檔案 bank.h 檔名稱 bank.h 檔案標識 無 內容摘要 該 用於獲取滿足字尾要求的第乙個檔案 其他說明 無 當前版本 v1.0 作 者 徐洪祥 完成日期 2015年7月17日 ifndef bank h included define bank h included include u...

課程實訓 銀行系統

檔名稱 test.cpp 作 者 李曉凱 完成日期 2015年 7 月 17 日 版 本 號 v1.0 問題描述 編寫乙個銀行系統來模擬完成銀行的各種業務 輸入描述 見執行圖 程式輸出 見執行圖 利用多檔案組織,將程式放在5個檔案中。head.h 檔名稱 main.cpp 檔案標識 無 內容摘要 改...