Graphics using C
To write program for graphics using c you must have following: #include<stdio.h> #include<conio.h> #include<graphics.h> #include<graphics. lib> /*graphics header file necessary in graphics c program*/ main() { int gd = DETECT, gm; /*initialization of graphics drivers*/ -------------------------- initgraph(); /*change the programs into graphics mode */ //other graphics functions closegraph(); /*close the graphics*/ } Following are some important terminology of graphics 1)Header File: To perform program using graphs we have to first add the header file as #include<graphics.h> #include<graphics. lib> It includes all graphics function definition. 2) Opening the graphics mode Normally when any C program is work with any stream it is in by default text mode. Too convert text mode into graphics mode we can initializes the graphics program by using initgraph(). The meaning of initgraph is initialization of graph. These function tak...