I have a string: \"apple\". How can I convert only the first character to uppercase and get a new string in the form of \"Apple\"?
\"apple\"
\"Apple\"
I can al
Like what Carneigie said,
string str = "something"; str[0] = toupper(str[0]);
but also remember to:
#include #include
all the way up