BankCard.h
资源名称:ATM.rar [点击查看]
上传用户:szmwdq
上传日期:2022-07-16
资源大小:528k
文件大小:1k
源码类别:
金融证券系统
开发平台:
Visual C++
- // BankCard.h: interface for the BankCard class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_BANKCARD_H__D330ACC7_33EB_4CF6_8D07_08E964E57205__INCLUDED_)
- #define AFX_BANKCARD_H__D330ACC7_33EB_4CF6_8D07_08E964E57205__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #include<string>
- #include<iostream>
- using namespace std;
- class BankCard
- {
- private:
- string num;//卡号
- int code;//密码
- double balance;//余额
- string bank;//所属银行
- public:
- BankCard(string n,int c,float b,string ba);
- string getNum();
- bool judgeCode(int cm);
- void setBalance(double b);
- string getBank();
- double getBalance();
- void deposit(double amount); //存款
- virtual void display();
- virtual void withdrawal(double a); //取款
- virtual ~BankCard();
- };
- #endif // !defined(AFX_BANKCARD_H__D330ACC7_33EB_4CF6_8D07_08E964E57205__INCLUDED_)