To change any string to uppercase, loop through each character in the string. If the character is in the range 'a' through 'z', decrement the character by decimal 32 (the difference between ASCII value 'a' and 'A'). The following function shows an example of this:
void to_upper(std::string& str)
{
for(int i=0; i<str.size(); ++i)
if(str[i]>='a' && str[i]<='z')
str[i]-=32;
}
Chat with our AI personalities
Text manipulation refers to the "processing" part of word processing. Word processors provide easy methods of deleting, inserting, copying, and moving individual characters, words, phrases, and paragraphs--even entire pages of information.
In Microsoft Word, CTRL+SHIFT+PLUS is used to apply superscript formatting with automatic spacing to the selected text.
No extern keyword in Java.
The answer is underground!
your look at your head