?? checking.cpp
字號:
//************************
//** checking.cpp **
//************************
#include <iostream.h>
#include "account.h"
#include "checking.h"
Checking::Checking(unsigned accNo, float balan)
:Account(accNo, balan){ remittance=other; }
void Checking::Withdrawal(float amount)
{
float temp=amount; //非信匯、電匯結算方式,則不收手續費
if(remittance==remitByPost) //若信匯,則加收30元手續費
temp=amount+30;
else if(remittance==remitByCable) //若電匯,則加收60元手續費
temp=amount+60;
if(balance<temp)
cout <<"Insufficient funds:balance withdrawal: " <<temp <<endl;
else
balance-=temp;
Display();
}
void Checking::SetRemit(REMIT re){ remittance=re; }
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -