see this was the easiest option thats y i told u this.
if this doesnt works then u will have to initiate the graphics mode by using initgraph() function. use the code as follows:
CODE
int main()
{
int gd=DETECT,gm;
initgraph(&gd,&gm,""); /*this function wil initiate the graphics mode*/
setcolor(BLUE);
setbkcolor(RED); /*this function will set the background color to red*/
outtextxy(20,20,"this will work"); /*it wil display the text starting from the (20,20) coordinate*/
closegraph(); /*always use this function at the end of the coding as it will close the graphics mode*/
}
but u cant use printf to display text in graphics mode
you will have to use outtextxy(x,y,"text");
where x ,y are the coordinates of the pixel from where the the text is to be displayed.
for more graphics functions u can scroll through the help index in the language.