savings_bro.cpp

来自「it is a usefull thing」· C++ 代码 · 共 20 行

CPP
20
字号
//=====================================
// savings_bro.cpp
//=====================================
#include<iostream>
#include"savings_bro.h"
//-------------------------------------
double Savings::minBalance = 0;
//-------------------------------------
void Savings::display()const{
  std::cout<<"Savings ";
  Account::display();
}//------------------------------------
void Savings::withdrawal(double amount){
  if(balance + minBalance < amount)
    std::cout <<"Insufficient funds withdrawal: "<<amount<<"\n";
  else
    balance -= amount;
}//------------------------------------

 

⌨️ 快捷键说明

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