account.h
来自「一、教学目的: 能理解C++中运算符重载的需要性」· C头文件 代码 · 共 23 行
H
23 行
#ifndef account
#define account
class Account
{
public:
Account(unsigned accNo,float balan=0.0);
unsigned AccountNo();
float AcntBalan();
static Account* First();
Account* Next();
static int NoAccounts();
void Display();
void Deposit(float amount);
virtual void Withdrawal(float amount);//虚函数
protected:
static Account* pFirst;
Account* pNext;
static int count;
unsigned acntNumber;
float balance;
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?