Guest User

Untitled

a guest
Jan 18th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  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))’
Add Comment
Please, Sign In to add comment