Convert a single character to a string?

Off the top of my head, if you’re using STL then do this:

string firstLetter(1,str[0]);

Leave a Comment