Hello,
I'm doing the all-to-familiar bank program, and I having trouble with one of my variables. I'm trying the keep "balance" private, and just have it affected by the functions. The code is in 3 files: Account.h, Account.cpp, and Lab7.cpp
Thanks for the quick reply! I did change that, as well as some other things. I got rid of startingBal. Now it looks like my functions are unresolved. At least that is what the error messages say when I try to compile. I think the issue is that I added double balance into the parentheses, but if I don't, I get an undefined error for balance. Here is where I'm at now:
I noticed that it was causing errors because lab7.cpp wasn't giving balance any definitions in the parentheses for the functions. I removed it, but now I get errors for balance not being declared in each function in Account.cpp. Where should it be defined to pick up all of the functions?
This time, I'm just attaching Account.cpp, as that is where the trouble is ( I think).