Is there a way to get a string to print out as:Code:#include <iostream>
using namespace std;
int main()
{
char string[81];
cout << "Enter a string" << endl;
cin.getline(string, 81);
cout << endl << string << endl;
return 0;
}
Hi, How Are You?
if I enter:
hi, how are you?
I'm guessing to capitalize the first word of a sentence, you would need to detect when the space key is entered and use the toupper function somewhere.