The header file graphics.h should be included to use graphics related built in functions. Again, the variable gDriver is an integer variable that specifies graphics driver to be used. Device drivers are small programs which talk directly to the hardware. Graphics drivers are a subset of device drivers and are applicable only in the graphics mode. The initialization of this variable to DETECT is to set another variable gMode to the highest resolution available for the detected driver. The value of this variable gDriver may be another than DETECT (e.g. 1 for CGA, 9 for VGA.). The variable gMode is an integer that specifies initial graphics mode. The built in function initgraph() is for graphics initialization. The syntax for this is as initgraph(&graphics_driver, &graphics_mode, path_to_driver); path_to_driver specifies the directory path where initgraph() looks for graphics drivers ( .BGI files). Thi...
Learn something about IT