MUstar

IoT C++ 09/12 - Project1_account.h

Sep 12th, 2017
124
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. #include <string>
  3. using namespace std;
  4.  
  5.  
  6. class BankAccount
  7. {
  8. private:
  9.     char name[40];
  10.     char acctnum[25];
  11.     double balance;
  12. public:
  13.     BankAccount(const char* client, const char *num, double bal = 0.0);
  14.     void show(void) const;
  15.     void deposit(double cash);
  16.     void withdraw(double cash);
  17. };
RAW Paste Data