int main(void)
{
// test the constructors
auto CName nameOne("Robert", "Bresson");
const CName nameTwo = nameOne;
auto CName nameThree;
// display the contents of each newly-constructed object...
// should see "Robert Bresson"
cout << "nameOne = ";
nameOne.WriteFullName();
cout << endl;
// should see "Robert Bresson" again
cout << "nameTwo = ";
nameTwo.WriteFullName();
cout << endl;
// should see nothing
cout << "nameThree = ";
nameThree.WriteFullName();
cout << endl;
// try the "read" function
cout << "Enter your first and last names separated by a space: ";
cin >> nameThree; <--- HERE
cout << "Your name is: " << nameThree << endl << endl; <--- HERE
//the cin is not rewritting the information correctly
// try the assignment operator
nameOne = nameThree = nameTwo;
cout << "Testing the assignment operator..." << endl;
cout << "nameOne == " << nameOne << endl;
cout << "nameTwo == " << nameTwo << endl;
cout << "nameThree == " << nameThree << endl << endl;
above is the main. The issue is with the lines I have pointed out in the main. I don't seem to understand how to pass the actual object so that the information is rewritten correctly in the overloaded operator.