capitalize first letter c++

C++
string str = "something";
str[0] = toupper(str[0]);
Source

Also in C++: