c++ int转string类型
std::string int2string(int input){
std::ostringstream ss;
//clear string
//ss.str("");
//ss.clear();
ss<<input;
return ss.str();
}
c++ - How to clear ostringstream - Stack Overflow
Easiest way to convert int to string in C++ - Stack Overflow