how to change a character in a string to uppercase in c++ code example Example: uppercase capitalise character in string c++ str[i] = toupper(str[i]);