look at the follwing code .
Code:#include <graphics.h> main () { int gd=DETECT,gm; initgraph(&gd,&gm,"c:\\tc\\bgi"); // remember there is no bgi // files in borland c++ 5.5 setcolor ( RED); line ( 25,25,100,25); closegraph(); restorecrtmode(); }
can any body suggest how to compile this code in windows based compilers such as borland c++ builder, dev-c++ etc .
thanks.