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

📄 assignment3.cpp

📁 使用c++简单实现ATM自动提款机
💻 CPP
字号:
//Main function

#include "ATM.h"
//#include "Account.h"



int main(){
 
  
  Bank* MyBank= new Bank("newAccounts.txt");
  
  //reads all the accounts from the text file "accounts.txt"
  // and strores it in memory
  //MyBank->print();

  //prints information about every account in the bank
  MyBank->addAccount("sun",121,30,200);
  //Create a new customer account
 
 
  //MyBank->removeAccount(4);
  //remove account id 4
  MyBank->print();
  UserInterface* interface=new UserInterface;
  
  float avail=10000;
  float maxWithdraw=600;

  ATM MyAtm(MyBank,interface,avail,maxWithdraw);
  MyAtm.startService();
  MyBank->print();
  MyBank->update("newAccounts.txt");
  delete MyBank;
  delete interface;
 //MyBank->print();
 return 0;

}
 

⌨️ 快捷键说明

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