- Code: Select all
const char *m_pszFirstName;
const char *m_pszMiddleName;
const char *m_pszLastName;
const char *m_pszFullName;
const char *GetFullName()
{
// TODO: Need to get First, middle and last name
// into pszFullName
return m_pszFullName;
}
There is a draft of the class. My problem lies here.
I need to get the first, middle and last name into fullname. It's obviously not possible to add them like this:
fullname = first + middle + last; since it's adresses, but how would I go about "loading" the fullname pointer with the adresses of the other three so it makes out the whole name in one pointer?
Hoping for swift answers! =)
Gar