mercredi 24 août 2016

I want to use setters and getters to make some variable private in C++ [duplicate]

This question already has an answer here:

I want to change this C++ code to getter setter

cin.getline(pCurrPtr->m_Name, sizeof(pCurrPtr->m_Name));

to a SetName() function. How may I do this?

Aucun commentaire:

Enregistrer un commentaire