Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- This is where I am trying to transfer it
- else if (lot [0][1] > 0)
- {
- lot [0][1] -= 1;
- maxCapacity -= 1;
- cash.transferData = price [0][1];
- cash.payment();
- cash.names = name [0][1];
- }
- This is where it is declared
- class cashRegister
- {
- public:
- cashRegister();
- double transferData;
- char names;
- void payment();
- void txtFile();
- private:
- double change;
- int registers[];
- };
- This is where it is used
- cout << "You owe " << transferData << " for parking in lot " << names << endl
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement