I need urgent help, as how can I run graphics.h programs on modern system.
My program compiles with no errors but it doesn't run.
I use DosBox.
Also tell me any settings to use in it.
My IDE is Turbo C++ 3.0Thanks in advance.
The winbgim version of initgraph uses its parameters only to determine the size of the window that will be created. For example, initgraph(CGA, CGAC3) will create a 320 x 200 window. As an alternative, the user may call initwindow(width, height) instead of initgraph.
Thanks all of you I got the solution of my problem, I had not been providing the address of display drivers in the initgraph, so I just copied all the contents of BGI folder to BIN folder and now my program runs fine.