Advertisement
Guest User

account.cpp

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