Hello Everyone!
I was wondering if someone could tell me how or refer me to a good place to find out how to call a private class function in a class's public member function.
This is how I did it:
However when it gets to the printRe function call, it does not work.Code:void ATM::deposit(string ptrans, string pacct, int pmoney) { cout <<"It is working" << endl; if(pacct == "Checking Account") checkBal = checkBal + pmoney; else if(pacct == "Savings Account") saveBal = saveBal + pmoney; void printRe(string ptrans, string pacct, int pmoney); }//end deposit function
Any ideas? I tried doing different kinds of function calls like the one you may use when calling a class function from a client program.