1 // File: name.cpp 2 // Description: Changes order of first and last names 3 // Author: 4 // Created: 07 Sep 05 5 6 #include <iostream> 7 #include <string> 8 9 using namespace std; 10 11 int main() 12 { 13 string fname = "Glenn"; 14 string lname = "Lancaster"; 15 16 cout << "\t********************" << endl; 17 cout << "\t* " << lname << ", " << fname << " *" << endl; 18 cout << "\t********************" << endl; 19 20 return 0; 21 } Output: ******************** * Lancaster, Glenn * ********************