Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Account
- {
- private:
- int balance;
- std::vector<Transaction> log;
- public:
- Account(); //Constructor
- std::vector<std::string> Report();
- bool Deposit(int amount);
- bool Withdraw(int amount);
- int GetBalance() {return balance;} //inline implementation
- //--------------------
- Account::Account(): balance(0){}
- vector<string> Account:Report()
- {
- vector<string> report;
- report.push_back("Balance is " + to_string(balance);
- }
- };
Add Comment
Please, Sign In to add comment