#include<graphics.h>
#include<dos.h>
void main()
{
int gd=DETECT,gm,i;
initgraph(&gd,&gm,”c:\turboc3\bgi”);
for(i=0;i<=360;++i)
{
circle(300,200,80);
pieslice(300,200,0,i,80);
outtextxy(200,320,”Loading….Please Wait!”);
delay(20);
}
closegraph();
}
what compiler are you using? I tried this in Visual Studio 2012 and "graphics.h" does not exist. I'm trying to learn to make simple graphics.
I am using Turbo C++, you can download it from here http://thecrazyprogrammer.blogspot.com/p/downloads.html. After that you can easily run the graphics programs. I hope this will help you.
The problem is that, we have not some files what it is required. Just look: c:turboc3bgi" ; graphics.h, turbo.h?
Where is these files? Without these, it is not working.
(I use: dev c++ wirh W7 32 bit)
It works me but i had to change to: for(i=1;i<=360;++i)
Why I have err on int gd=DETECT,gm,i;
I compile with http://www.uniqueness-template.com/devcpp/
Nice program,, Thanks for Sharing…
Good one..
Good stuff
I am not getting the out put they are saying
=>pieslice should have a prototype
=>function call missing }
=>function call missing }
=>statement missing
=>