C graphics program to draw a line









C graphics program to draw a line

#include <graphics.h>
#include <conio.h>

void main()
{
int d,m;

d=DETECT;
initgraph(&d,&m,"c:\\tc\\bgi");

line(50,50,500,50);

getch();
closegraph;
}

Output :


0 comments:

Post a Comment