accessing varible in a c++ class
I have a program that is trying to access a varible from a class in a porgram. For example
the varible customer is my Account.h file and in my Bank.h I have another varible called Account savings, they are both arrays.
In my Bank.cpp file I have to take the info from Account savings and put in the customer varible.
the line of code looks like this
and I get the error something like
can't access the private member varible
What is the problem, keep in mind that I have added the includes for Account.h and Bank.h in Bank.cpp