checking.h
资源名称:c.rar [点击查看]
上传用户:puke2000
上传日期:2022-07-25
资源大小:912k
文件大小:1k
源码类别:
C#编程
开发平台:
Visual C++
- //=====================================
- // checking.h
- //=====================================
- #ifndef HEADER_CHECKING
- #define HEADER_CHECKING
- //-------------------------------------
- #include<string>
- using std::string;
- //-------------------------------------
- enum REMIT{remitByPost, remitByCable, other}; //信汇, 电汇, 无
- //-------------------------------------
- class Checking{
- string acntNumber;
- double balance;
- REMIT remittance;
- public:
- Checking(string acntNo, double balan=0.0);
- void display()const;
- void deposit(double amount){ balance += amount; }
- double getBalan()const{ return balance; }
- void withdrawal(double amount);
- void setRemit(REMIT re){ remittance = re; }
- };//-----------------------------------
- #endif // HEADER_CHECKING