how to copy integer into string

i need to copy int idno[50]
into char idno2[50][13] so i can use it for my graphics.h command outtextxy(x1,x2,y1,y2,idno[1]) because it only takes on character data types and i dont know a command which i can use to print out an integer into a specific coordinate. PLEASE i need to pass it tommorow :( thanks!

ps, im using borland c++ compiler because were required to use it. :)
Last edited on
You can use sprintf for the corresponding elements of the two arrays: sprintf ( idno2[n], "%d", idno[n] );
it worked! haha! thanks :D ure a life saver :))
Topic archived. No new replies allowed.