C++学习笔记

将整型转换为字符串:

#include <sstream>

using namespace std;
...
stringstream sstrm;
sstrm << 123;
return sstrm.str();

你可能感兴趣的:(C++学习笔记)