int转string
#include <iostream>
#include <sstream>
using namespace std;
int main()
{
int i=66;
ostringstream oss;
oss<<i<<".";
string str=oss.str();
cout<<str<<endl;
return 0;
}
int转wstring
#include <iostream>
#include <sstream>
using namespace std;
int main()
{
int i=66;
wostringstream oss;
oss<<i<<".";
wstring wstr=oss.str();
wcout<<wstr<<endl;
return 0;
}