It has already been mentioned, use <sstream>
#include <iostream>
#include <string>
#include <sstream>
#include <cwchar>
using namespace std;
int main (int argc, char * const argv[]) {
wstringstream s;
int x;
wcout<< "Enter an integer : ";
wcin >> x;
s << "Value entered is : " << x;
wcout<<s.str();
return 0;
}
#include <iostream>
#include <string>
#include <sstream>
#include <cwchar>
using namespace std;
int main (int argc, char * const argv[]) {
wstringstream s;
int x;
wcout<< "Enter an integer : ";
wcin >> x;
s << "Value entered is : " << x;
wcout<<s.str();
return 0;
}