I want to run a C program that draws a circle. The program is compiling with no error and it is running. After getting the values like radius from the user, I get the error
I also suffered from that problem.
Simply put this line:
initgraph(&gdrive,&gmode, "c:\tc\bgi");
here c:\tc\bgi
is important.
MOST IMPORTANT:
In tc.exe
(which you are using) at top are some menus like file, edit, options:
NOTE: in the output, if it gives an error about bgi, ignore it, just give the input for the program if it is required and it will give you the graphics output. Enjoy.