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