I have started working on a C project to build a PacMan game, but I am getting an error when I execute below code. The error is generated by Code::Blocks as well as Turbo C++ 3.5.
In Code::Blocks I remove the path which is "C:\TurboC3\BGI"
,but the error still continues.
#include<stdio.h>
#include<conio.h>
#include<graphics.h>
int main()
{
int gd=0,gm;
initgraph(&gd,&gm,"C:\\TurboC3\\BGI");
setfillpattern(SOLID_FILL,YELLOW);
circle(200,100,10);
line(200,250,200,250);
line(225,250,225,250);
line(250,250,250,250);
line(275,250,275,250);
line(300,250,300,250);
line(325,250,325,250);
arc(50,225,110,-100,30);
printf("Hello...Let's Play PacMan !! \n\n");
getch();
closegraph();
return 0;
}