Friday, October 11, 2013

Program to draw simple line in Graphics

#include<iostream.h>
#include<conio.h>
#include<graphics.h>
void main()
{
clrscr();
int gd=DETECT,gm;
initgraph(&gd,&gm,"c:\tc\bgi");
line(40,60,50,70); //coords of two end pts of line
getch();
}

No comments:

Post a Comment