hai everybody
I tried to write a simple program which when compiled it will change the color of the Background to red and the code for that is
Code:
#include<conio.h>
void main()
{
int gd=DETECT,gm;
initgraph(&gd,&gm,"c:\\tctemp\\bgi");
setbkcolor(4);
getch();
closegraph();
}
when i tried to compile its showing that
BGI Error: Graphics not Initialized ( use 'initgraph' )
when i checked no BGI named folder was there in c:\tctemp only but bgi.arc file was there what should i do to compile this program.
Please help me