?? checking.cpp
字號:
//=====================================
// checking.cpp
//=====================================
#include<iostream>
#include"checking.h"
//-------------------------------------
Checking::Checking(string acntNo, double balan)
:acntNumber(acntNo), balance(balan), remittance(other){}
//-------------------------------------
void Checking::display()const{
std::cout<<"Checking Account:"+acntNumber+" = "<<balance<<"\n";
}//------------------------------------
void Checking::withdrawal(double amount){
if(remittance==remitByPost) //信匯加收30元手續(xù)費(fèi)
amount += 30;
if(remittance==remitByCable) //電匯加收60元手續(xù)費(fèi)
amount += 60;
if(balance < amount)
std::cout<<"Insufficient funds withdrawal: "<<amount<<"\n";
else
balance -= amount;
}//------------------------------------
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -