c++ convert string to all caps code example
Example 1: uppercase capitalise character in string c++
str[i] = toupper(str[i]);
Example 2: convert all characters in string to uppercase c++
transform(str.begin(), str.end(), str.begin(), ::toupper);