I want to use the outtextxy() for the output of my program in the graphical mode,but the complier gives error when it encounters a variable in the outtextxy() as an argument.

Suggest me how to slove this.

for eg:

for(i=0;i<=3;i++)
{
outtextxy(100,200,i);
setcolor(0);
setfillstyle(SOLID_FILL,BLACK);
bar(50, 50, 590, 430);
}

the screen will clear and then the next will be printed.

What kind of error are you getting ?
Did you include all the header files ?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.