How to Draw A Line In C-Graphics

#include<stdio.h>
#include<conio.h>
#include<graphics.h>
void main()
{
int gd=DETECT,gm;
initgraph(&gd,&gm,"C://TC//BGI");
line(100,200,300,400);
getch();
}


OUTPUT :




For Practical implementation and knowing about each command of this program watch the video below.

Comments

Popular posts from this blog

C Graphics Moving CAR Program

How To Draw a Hut in C Graphics