PROGRAM TO DRAW A LINE USING C AND CPP

#include<graphics.h>
#include<conio.h>
int main() {
int gd = DETECT, gm;
/* initialization of graphic mode */
initgraph(&gd, &gm, "C:\\TurboC3\\BGI");
line(100,100,200, 200);
getch();
closegraph();
return 0;
}




Share on Google Plus

About Jasna Ali

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.

0 comments:

Post a Comment