You are on page 1of 2

Graphics 6

============================================
#include <conio.h>
#include <iostream.h>
#include <graphics.h>
#include <dos.h>
void main()
{
clrscr();

// GRAPHICS INITIALIZATION NECESSARY

int gdriver= DETECT , gmode;


initgraph(&gdriver, &gmode, "e:\\turbo\\tc\\bgi");

/*
int xmax,ymax;
xmax=getmaxx();
ymax=getmaxy();
*/
for (int e=0;e>=0;e++)
{
setcolor(e);
int x1=50,x2=50;
for (int i=1;i<=12;i++)
{
line (x1,50,x2,400);
x1+=50;
x2+=50;
}

int y1=50,y2=50;

for (int k=1;k<=8;k++)


{
line (50,y1,600,y2);
y1+=50;
y2+=50;
}

int mid1=75,mid2=75;
for (int r=1;r<=7;r++)
{
for (int w=1;w<=11;w++)
{
circle(mid1,mid2,25);

mid1+=50;
}
mid2+=50;
mid1=75;

}
if (kbhit())
break;
delay(500);
}
getch();
closegraph();

http://www.ravianeducation.blogspot.com
FARHAN: 03008855006