Is there a function that will convert a integer into a string? I tried typecasting, and that didn't work. I also tried itoa, which also gave me errors.
Thanks.
Is there a function that will convert a integer into a string? I tried typecasting, and that didn't work. I also tried itoa, which also gave me errors.
Thanks.
I always prefer the old C style method:DavidCode:#include <stdlib.h> int main() { int Number = 347; char NumberString[10] = ""; sprintf(NumberString, "%d", Number); return 0; }
One Ring to rule them all, One Ring to find them,
One Ring to bring them all and in the darkness bind them
In the Land of Mordor where the Shadows lie.
I always use sprintf() as well, but itoa() should be mentioned - look at it in the help.
Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.