#include <iostream>
#include <sstream>
using namespace std;
int main()
{
int i = 10;
stringstream strstr;
strstr << i;
string str(strstr.str());
cout << "str = " << str << std::endl;
}