You are on page 1of 1

Filing Example 7

============================================
#include<iostream.h>
#include<conio.h>
#include<stdlib.h>
#include<graphics.h>

void main()
{
clrscr();
/* request auto detection */
int gdriver = DETECT, gmode, errorcode;
int midx, midy;
int radius = 100;

/* initialize graphics and local variables */


initgraph(&gdriver, &gmode, "");

/* read result of initialization */


errorcode = graphresult();
if (errorcode != grOk) /* an error occurred */
{
printf("Graphics error: %s\n", grapherrormsg(errorcode));
printf("Press any key to halt:");
getch();
exit(1); /* terminate with an error code */
}

circle(8,8,9);

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