|
From: <exc...@sp...> - 2000-12-07 08:18:15
|
>How to convert, cast, transform, whatever a >int value to a string? First, include stdlib.h. Then add another string to hold the myInt value: char myApples[20]; Then all you have to do is insert this line of code: itoa(myInt, myApples, 10); This line of code takes an int (myInt), and converts it to a string (myAples), with base 10. If you want the number in hex, write 16. If you want it in binary, write 2. /Orjan _________________________________________s_p_r_a_y_ Här börjar Internet! Skaffa gratis e-mail och gratis Internet på http://www.spray.se |