c++中int转string的方法 1.利用stringstream: //需要加入头文件#include<sstream> int n=121; stringstream cop; cop<<n; string s=cop.str();