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)
char * bufSecs = new char[32]; char * bufMs = new char[32]; sprintf(bufSecs, "%d", timeStart.elapsed()/1000); sprintf(bufMs, "%d", timeStart.elapsed()%1000);