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