Advertisement
Guest User

Untitled

a guest
Nov 27th, 2014
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.64 KB | None | 0 0
  1. This is where I am trying to transfer it  
  2.      else if (lot [0][1] > 0)
  3.         {
  4.             lot [0][1] -= 1;
  5.             maxCapacity -= 1;
  6.             cash.transferData = price [0][1];
  7.             cash.payment();
  8.             cash.names = name [0][1];
  9.         }
  10.  
  11. This is where it is declared
  12.  
  13. class cashRegister
  14. {
  15.     public:
  16.         cashRegister();
  17.         double transferData;
  18.         char names;
  19.         void payment();
  20.         void txtFile();
  21.  
  22.     private:
  23.         double change;
  24.         int registers[];
  25. };
  26.  
  27. This is where it is used
  28.  
  29.    cout << "You owe " << transferData << " for parking in lot " << names << endl
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement