My Profile

Ahmednagar, Maharashtra, India
I, Das ShrikKrishna J. MCA III IMSCD&R, Ahmednagar.

Thursday, 28 July 2011

Program to draw Line

/* Program to draw Line */
#include<stdio.h>
#include<conio.h>
#include<graphics.h>
void main()
{
int gd=DETECT,gm;
int x,y,r;
initgraph(&gd,&gm,"c:\\turboc3\\");
x=getmaxx()/2;
y=getmaxy()/2;
line(x-50,y-50,x+50,y+50);
putpixel(x,y,YELLOW);
getch();
//closegraph();
}

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | cheap international calls