⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 account.h

📁 这是我们C++书上的课后题答案。是钱能编著的第二版C++
💻 H
字号:
#ifndef HEADER_ACCOUNT
#define HEADER_ACCOUNT

#include<STRING>
// using std::string;
using namespace std;
//////////////////////////////////////////////////////////////////////////
class Account
{
public:
	Account(string acntNo,double balan = 0.0);
	virtual void display()const;
	double getBalan()const
	{
		return balance;
	}

	void deposit(double amount)
	{
		balance += amount;
	}
	
	bool operator ==(const Account &a)
	{
		return acntNumber == a.acntNumber;
	}

	virtual void withdrawal(double amount )
	{
		return ;
	}

protected:
public:
	string acntNumber;
	double balance;
};
#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -