graphics program in c to draw a moving car
c graphics program for animation
graphics programming in c with output
graphics programming in c examples
simple graphics program in c to draw a line
c program to draw a square using graphics
graphics programming in c pdf
c program to draw a rectangle using graphics
Draw x And Y axis Center Of Screen Using C program
#include<conio.h>
#include<graphics.h>
#include<stdio.h>
void main()
{
int gd=DETECT,gm,maxx,maxy,midx,midy;
//load driver
initgraph(&gd,&gm,"c:\\tc\\bgi");
cleardevice();
maxx=getmaxx();
maxy=getmaxy();
midx=maxx/2;
midy=maxy/2;
line(0,midy,midx,maxy);
line(midx,0,midx,maxy);
getch();
closegraph();
}