Program --- How to Draw a Cricle

Program --- How to Draw a Cricle
#include<graphics.h>
#include<conio.h>
void main()
{
 int gd=DETECT, gm;
 initgraph(&gd, &gm, "c:\\turboc3\\bgi " );
 circle(200,100,150);
 getch();
 closegraph();
}
More detail on Syntax
1. InitGraph: Initializes the graphics system.
2. Declaration: void far initgraph(int far *graphdriver, int far *graphmode,
char far *pathtodriver);
3. Remarks: To start the graphics system, you must first call initgraph.
4. initgraph initializes the graphics system by loading a graphics driver from
disk (or validating a registered driver) then putting the system into graphics
mode.
5. initgraph also resets all graphics settings (color, palette, current position,

viewport, etc.) to their defaults, then resets graphresult to 0

No comments:

Post a Comment