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)
sprintf() is pretty good for format conversion. You can then assign the resulting C string to the C++ string as you did in 1.
sprintf()