|
it has to do these operations to whatever the user enters:
THIS IS WHAT I HAVE SO FAR
char message[50];
cout<<"Enter a string: ";
cin>> message;
cout<<"After capitalizing the first letter of this string it becomes: ";
message[0] = toupper (message [0]);
cout<<message;
cout<<"\n""After capitalizing the last letter of this string it becomes: ";
cout<<message;
cout<<"\n""After adding three to the first letter of this string it becomes: ";
cout<<message;
cout<<"\n""After swapping the first and last letters of this string it becomes: ";
cout<<message<<"\n""\n";
system("PAUSE");
system("CLS");
|