C++基础笔记(int转string)

int a = 23;
stringstream ss;
ss << a;
string s1 = ss.str();

  头文件需添加#include "sstream"

原文地址:https://www.cnblogs.com/Never-Land/p/9743594.html