Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <string>
- #include <iostream>
- #include "account.h"
- using namespace std;
- string name;
- string address;
- int phone;
- string email;
- string password;
- string username;
- double balance;
- Account::Account(string _name, string _address, int _phone, string _email, string pass, string user, double bal)
- {
- name = _name;
- address = _address;
- phone = _phone;
- email = _email;
- password = pass;
- username = user;
- balance = bal;
- }
- double Account::withdraw(double withdraw)
- {
- balance = balance - withdraw;
- return balance;
- }
- double Account::deposit(double deposit)
- {
- balance = balance - deposit;
- return balance;
- }
- //void editInfo()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement