It used to use the GCVT () function (more unconventional) and sprintf (), from today, write C no longer use.
The current writing is:
#include
#include
Using namespace std;
String foo (int)
{
INT i = xx;
String Str;
Stringstream out;
OUT << i;
OUT >> Str; // Str is the value of i XX
Return Str;
}
If you use Boost, there is a simpler write, but it is true.