c++ how to capitalise a letter code example
Example 1: capitalize first letter c++
string str = "something";
str[0] = toupper(str[0]);
Example 2: uppercase capitalise character in string c++
str[i] = toupper(str[i]);
string str = "something";
str[0] = toupper(str[0]);
str[i] = toupper(str[i]);