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