Okay, but I have changed it a lot in the scope to try to get it to read AccountNum like it did for Charge and balance by using (float), char... a couple others that I knew weren't going to work like int, double, double amount.... So how do I properly declare it?
I want it to read setAccountNumber = AccountNum
or do I not need to set an account number if I made AccoutNum = 65432?
Is setAccountNumber used if I was asking someone to set an account number?
The directions just say to set the account number not to ask the user to do so... See I'm starting to get myself confused...
setAccountNumber function is declared as a const function which is peculiar. Normally a function with that kind of name is expected to change something. I would expect an account number attribute with declarations like this.
1 2 3 4 5 6 7 8 9
// Of course your account number type could also be a string or double or whatever you wish to design
void setAccountNumber(int value);
int getAccountNumber() const; // use const for accessors, but not mutators
// to invoke (very generic code - you'd substitute your actual type and function names)
account.setAccountNumber(value); // write the value into the object so it cannot be const function
int number = account.getAccountNumber(); // guaranteed not to change the object because it is const function