asylu3
27-02-2004, 08:38 PM
#include < stdlib.h >
#include < iostream.h>
#include < string >
void main()
{
char buffer[20]; //the size of buffer depend on your need
std::string target;
_itoa(25,buffer,10) // 25 is number to convert,10 is radix
target=buffer;
}
More at: http://msdn.microsoft.com/library/default....t_itoa_itow.asp (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcecrt/htm/_wcecrt_itoa_itow.asp)
#include < iostream.h>
#include < string >
void main()
{
char buffer[20]; //the size of buffer depend on your need
std::string target;
_itoa(25,buffer,10) // 25 is number to convert,10 is radix
target=buffer;
}
More at: http://msdn.microsoft.com/library/default....t_itoa_itow.asp (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcecrt/htm/_wcecrt_itoa_itow.asp)