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)
If you have Boost installed (which you should):
#include int num = 4; std::string str = boost::lexical_cast(num);