While running the code, the .exe file stopped without displaying output and showed an error:
process returned -1073741819 (0xC0000005)
I had downloaded graphics.h, winbgi.h, libbgi.a, pasted these files in include and lib directory of code blocks respectively, and set the path in the settings>>compiler>>linker setting.
#include <graphics.h>
#include <conio.h>
using namespace std;
int main()
{
int gd = DETECT, gm;
char c_array[] = "C:\\turboc3\\bgi";
initgraph (&gd, &gm, c_array);
circle (200, 200, 100);
getch();
closegraph();
return 0;
}
User contributions licensed under CC BY-SA 3.0