Question

Is it possible to do something like cout << "my string"; and have my string capitalized? from what i can tell there is no way to do it? i need to wrap it around a function

Was it helpful?

OTHER TIPS

Use the Boost string_algo library:

string myStr("my string");
to_upper(myStr);
cout << myStr;
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top