I also suffered from this problem.
Simply put:
initgraph(&gdrive,&gmode, "c:\tc\bgi");
here c:\tc\bgi .
THE MOST IMPORTANT:
In tc.exe (which you use) at the top are some menus, such as file, edit, options:
- Go options> application
- select overlay (the default is "standard", but you must select the "overlay" option), then click "ok".
- You are now starting your graphics program.
NOTE: in the output, if it gives a bgi error message, ignore it, just specify the input for the program, if necessary, and this will give you a graphical output. Enjoy it.
source share