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

转载:https://blog.csdn.net/dididisailor/article/details/83189135

1 char c;
2 string str;
3 stringstream stream;
4 stream << c;
5 str = stream.str();

 

posted @ 2019-07-25 11:47  _KikyoBK  Views(2842)  Comments(0)    收藏  举报