Reference another class's data member...
The cpp is attached, heres the problem.
In function User_Info i take in the users name, age and sex. These are three member functions, a string, int and char. Each returns its according variable.
In function Greet_User i want to call in these three. I thought maybe i couldn't because they are private, but public gives me the same error. I am new to classes so please be patient. Some of the other functions are incomplete but the program will run if u remove my problem so you can ignore them. Heres the cpp.