![]() DETECT is a macro defined in "graphics.h" header file, then we have passed three arguments to initgraph function first is the address of gd, second is the address of gm and third is the path where your BGI files are present (you have to adjust this accordingly where you Turbo C compiler is installed). ![]() ![]() To begin with we have declared two variables of int type gd and gm for graphics driver and graphics mode respectively, you can choose any other variable name as well. Let me tell you what the output of this program is, this program initializes graphics mode and then closes it after a key is pressed. Initgraph (
0 Comments
Leave a Reply. |