Click to See Complete Forum and Search --> : Type Cast from Integer to String


tina
09-27-2002, 09:54 PM
Is it possible to do a type cast from an integer to a string?

Danny Kalev
09-28-2002, 02:13 AM
not really. you have to convert an int to a string using one of the C
library functions, say sprintf(), sscanf() and so on or better yet using
C++ <sstream> classes. See
http://gethelp.devx.com/techtips/cpp_pro/10min/2001/april/10min0401.asp

Danny

tina wrote:
>
> Is it possible to do a type cast from an integer to a string?

tina
09-30-2002, 02:49 AM
Hi Danny,
Thank you very much for the tips. It was a big help.

Tina

Danny Kalev <dannykk@inter.net.il> wrote:
>not really. you have to convert an int to a string using one of the C
>library functions, say sprintf(), sscanf() and so on or better yet using
>C++ <sstream> classes. See
>http://gethelp.devx.com/techtips/cpp_pro/10min/2001/april/10min0401.asp
>
>Danny
>
>tina wrote:
>>
>> Is it possible to do a type cast from an integer to a string?