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

📄 savings_bro.cpp

📁 C++程序设计教程(第二版)源代码 钱能编著
💻 CPP
字号:
//=====================================
// 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -