Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private:
- const std::string currentDateTime() {
- time_t now = time(0);
- struct tm tstruct;
- char buf[80];
- tstruct = *localtime(&now);
- strftime(buf, sizeof(buf), "%Y-%m-%d.%X", &tstruct);
- return buf;
- }
- struct Account {
- // Login Info
- string username;
- string password;
- int account = -1;
- string firstName;
- string lastName;
- AccountType type = AccountType::Checking;
- Permissions Permissions = Permissions::Customer;
- float money = 0; // Money is like debit
- float cash = 0; // Cash is what the 'customer' has on hand. hypothetical.
- };
- Account* accounts ;
- public:
- void Resize_Array(int size) {
- accounts = new Account[size];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement