Possible Duplicate:
C++ convert int and string to char*
Hello, i am making a game and I have a score board in it. The score is stored in an int variable but the library im using for the game needs an array of chars for its text outputting for my scoreboard.
So how do i turn an int into an array of chars?
int score = 1234; // this stores the current score
dbText( 100,100, need_the_score_here_but_has_to_be_a_char_array);
// this function takes in X, Y cords and the text to output via a char array
The library im using is DarkGDK.
tyvm :)