[求助]如何将int转变为string
#include<iostream>
#include<string>
using namespace std;
int main ()
{
int i=1;
string j;
j=(string)i; // error C2440: 'type cast' : cannot convert from 'int' to 'class
cout<<j<<endl;
return 0;
}
如何将int转变为string?