how to make string with the first char upper case in c++ code example Example: capitalize first letter c++ string str = "something"; str[0] = toupper(str[0]);