I am using codeblocks 17.2 for c++ and i am struggling to successfully get an output while running a graphics program. I have added all the linker settings and files successfully but there is still a problem. When i run a basic graphics program, It compiles and runs properly but there is a blank output with this line
Process returned -1073741819 (0xC0000005) execution time : 2.891 s
Press any key to continue.
this is my code
#include<iostream>
#include<graphics.h>
#include<conio.h>
using namespace std;
int main()
{
int gd = DETECT;
int gm;
initgraph(&gd,&gm, "C:\\TC\\BGI");
circle(300,300,50);
closegraph();
getch();
}
User contributions licensed under CC BY-SA 3.0