#include #include #include using namespace std; int main () { initwindow(640,480); int nNum = 5; //convert an int to a string for outtextxy //Step One: Declare old fashioned char array //the number in [] should be at least one bigger //than the number of digits char caArray[5]; //Step Two: Use itoa with outtextxy to display the number //itoa takes three arguments, an int, a char array, and a //radix (the base of the number) Use 10 for radix. outtextxy(20,20,itoa(nNum,caArray,10)); getch(); closegraph(); return 0; }