Write the missing class that will enable the following program to work:
#include iostream
#include string
using namespace std;
#include "name.h" // <----- You should create this file
int main()
{
name X,Y("Mr.","Yogi","The","Bear");
X.First = "Charles";
X.Middle = "Rick";
X.Last = "King";
X.Title = "Prof.";
cout << X.Common() << endl;
cout << X.Sorting() << endl;
cout << Y.Formal() << endl;
system("pause");
return 0;
}
This program should produce the following output:
Charles King
King, Charles Rick
Mr. Yogi The Bear
Press any key to continue . . .