daily pastebin goal
40%
SHARE
TWEET

Untitled

a guest Jan 18th, 2019 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. cout << Account[i];
  2.    
  3. vector<Account> accounts;
  4. cout << accounts[i];
  5.    
  6. ostream& operator<<(ostream& os, SavingAccount& Sav){
  7.  
  8. os << "BSB number: " << Sav.bsbNo << endl;
  9. os << "Account Number: " << Sav.accountNo << endl;
  10. os << "Name: " << Sav.name << endl;
  11. os << "Address: " << Sav.address << endl;
  12. os << "Phone: " << Sav.phone << endl;
  13. os << "Balance: " << Sav.balance << endl;
  14. os << "ATM card number: " << Sav.ATMcardNo << endl;
  15. cout << endl;
  16.  
  17. //Set time
  18.  
  19. return os;
  20.    
  21. error: no match for ‘operator<<’ in ‘std::cout << ((Transaction*)this)->Transaction::accounts. std::vector<_Tp, _Alloc>::operator[] [with _Tp = Account, _Alloc = std::allocator<Account>](((long unsigned int)i))’
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top