Advertisement
Guest User

account.cpp

a guest
Jun 22nd, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. #include <string>
  2. #include <iostream>
  3. #include "account.h"
  4. using namespace std;
  5.  
  6. string name;
  7. string address;
  8. int phone;
  9. string email;
  10. string password;
  11. string username;
  12. double balance;
  13.  
  14. Account::Account(string _name, string _address, int _phone, string _email, string pass, string user, double bal)
  15. {
  16. name = _name;
  17. address = _address;
  18. phone = _phone;
  19. email = _email;
  20. password = pass;
  21. username = user;
  22. balance = bal;
  23. }
  24.  
  25. double Account::withdraw(double withdraw)
  26. {
  27. balance = balance - withdraw;
  28. return balance;
  29. }
  30. double Account::deposit(double deposit)
  31. {
  32. balance = balance - deposit;
  33. return balance;
  34. }
  35. //void editInfo()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement