Advertisement

int->string

Started by December 21, 2000 11:56 PM
2 comments, last by Gaiiden 24 years, 1 month ago
is there a function or something that can covert an integer to a string in C++? I know they exist in VB and QB - did they manage to make it over to C++ in some fashion? ============================== "Need more eeenput..." - #5, "Short Circuit" Blade Edge Software ==============================

Drew Sikora
Executive Producer
GameDev.net

TCHAR buffer[32];
int num = 10;
sprintf( buffer, "%d", num );



if ( there''''s a will )
return ( there''''s a way );
Advertisement
huh. Not a function, but a method. I have to start thinking more...

==============================
"Need more eeenput..."
- #5, "Short Circuit"
Blade Edge Software
==============================

Drew Sikora
Executive Producer
GameDev.net



char *_itoa( int value, char *string, int radix );'

Set radix to 10.

Edited by - granat on December 22, 2000 3:50:45 AM
-------------Ban KalvinB !

This topic is closed to new replies.

Advertisement