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