#include<stdio.h>
#include<conio.h>

main()
{
window(10,55,22,77);
textbackground(RED);
clrscr();
}

is this correct?? i run it but it didn't display anything. my prof. have an example bout this he said that the #'s inside the parentheses are the sizes of the box, (x1,y1,x2,y2) x1 is the top line of the box, y1 is left line of the box,x2 is the bottom line of the box, and y2 is the ryt line but how??

Maybe try this:

#include <stdio.h>
#include <stdlib.h>
#include <conio.h>

int main()
{
     window(100, 50, 360, 350);
     textbackground(RED);

     _sleep(5000);

     clrscr();
     return(0);
}

And you do know how a grid works, and how to find the x,y coordinates right?

edit:
Oh, yeah! You have to use the BB-code tags(it's the law):
http://www.daniweb.com/forums/misc-explaincode.html

an error says _sleep shoould have a prototype

an error says _sleep shoould have a prototype

Compiler, and version?

Compiler, and version?

dont wori i have solve now..:) tnx for the help BTW...:)

window(10,10,77,77);
// never use it

textbackground(4);
what is the use of this function in c++ programming?