首页 > 代码库 > int转string

int转string

#include<iostream>#include<sstream>#include<string>using namespace std;int main(){    int a = 5;    ostringstream os;    os << a;    string s = os.str();    cout << s << endl;    return 0;}

 

int转string