c++: string.c_str() ---------> c:
char c;
string str;
stringstream stream;
stream << c;
str = stream.str();
这里是char 转string
char * 转string如下:
c++: string.c_str() ---------> c:
char c;
string str;
stringstream stream;
stream << c;
str = stream.str();
这里是char 转string
char * 转string如下: