Brandan

Untitled

Mar 13th, 2014
159
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. private:
  2.     const std::string currentDateTime() {
  3.         time_t     now = time(0);
  4.         struct tm  tstruct;
  5.         char       buf[80];
  6.         tstruct = *localtime(&now);
  7.  
  8.         strftime(buf, sizeof(buf), "%Y-%m-%d.%X", &tstruct);
  9.  
  10.         return buf;
  11.     }
  12.  
  13.     struct Account {
  14.         // Login Info
  15.         string username;
  16.         string password;
  17.  
  18.         int account = -1;
  19.         string firstName;
  20.         string lastName;
  21.         AccountType type = AccountType::Checking;
  22.         Permissions Permissions = Permissions::Customer;
  23.         float money = 0; // Money is like debit
  24.         float cash = 0;  // Cash is what the 'customer' has on hand. hypothetical.
  25.     };
  26.  
  27.     Account* accounts ;
  28. public:
  29.  
  30.     void Resize_Array(int size) {
  31.  
  32.         accounts = new Account[size];
  33.  
  34.     }
RAW Paste Data