Doubt about pointers (C++)
Hello very good, this is my first post in this forum. A week ago I finished the c ++ course on the page, and I am creating a practical application. As I create it, an existential doubt arises; Is there a possibility that the variables of member functions can be called in the main function, either by being in an access specifier as private, protected or declared in the member function itself. Let's put it this way: I have a member function which asks the user to enter their date of birth day / month / year (here I declare 3 variables), then depending on what the user places, I will show it in a message but in the main function. Within the same member function if this action can be done and call it in main, but I can not do it in the way that I am commenting Would you put some example ?, or advise me. Thank you very much.