c 模擬ATM的訪問款以及查詢功能

2021-09-18 08:25:31 字數 714 閱讀 3144

一波三折才寫出來這個系統,第一遍寫完發現自己實現的功能和老師要求的功能完全不一樣,做完又熬夜寫出來,今天把錯誤給改了一遍,

發現自己還是很多知識點沒有掌握,對很多概念不清楚,很多bug改不出來就換一種方式來寫,自己的計數有待提高。

**如下:

#include#include#include#include#include#include#include#define ll long long

using namespace std;

struct riqi //定義日期

;class bank

//初始化列表

friend void inquire(); //宣告查詢函式

friend void deposit(); //宣告存款函式

friend void withdrawal(); //宣告取款函式

};bank a;

void input(); //宣告輸入函式

void deposit() //定義存款函式

}a.money=a.money-w_money;

cout<<"請取款!"<>y;

//cout<>m;

//cout<>d;

//cout<>num;

if(num==a.zhanghao)

int main()

簡單的ATM的訪問款

using system using system.collections.generic using system.linq using system.text namespace atm public bankcard string num,string pwd,string name,floa...

迴圈實現簡易Atm訪問款查詢餘額案例

1.使用者輸入第幾個序號就彈出相應的內容 2.使用者輸入4時,退出switch,為了在退出switch後不再彈出請求,在switch外用 if 判定使用者輸入的序號是否為 4 等於 4 就退出整個迴圈 var money 100 已經有的錢 利用while迴圈 判斷 while 在判斷條件為真的時候...

C 實現的簡單的ATM機模擬例項

c 實現的簡單的atm機模擬例項 using system using system.collections.generic using system.linq using system.text namespace bankdemo else break case 2 查詢餘額 console.w...