What is the easiest way to convert from int to equivalent string in C++. I am aware of two methods. Is there any easier way?
int
string
(1)
I usually use the following method:
#include template std::string NumberToString ( T Number ) { std::ostringstream ss; ss << Number; return ss.str(); }
It is described in details here.