c++将字符转换成字符串

char c;
string str;
stringstream stream;
stream << c;
str = stream.str();

 

你可能感兴趣的:(C++)