yyzz
asked on
int to string
I want to know how to convert an integer to string.
such as 123456 to "123456".
such as 123456 to "123456".
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
How to do it with c++? Does stdlib.h include it?
yeah. you need to include <stdlib.h> in your source code to do that.
ASKER
thanks.
{
char buffer[64];
sprintf( buffer, "%ld", 123456 );
}
If using MFC, you could also use the CString::Format method.