Simple program to create a circular loading bar using graphics

Simple program to create a circular loading bar using graphics

#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();
}

7 thoughts on “Simple program to create a circular loading bar using graphics

  1. Unknown

    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.

    Reply
    1. Donát Balázs

      The problem is that, we have not some files what it is required. Just look: c:\turboc3\bgi" ; graphics.h, turbo.h?
      Where is these files? Without these, it is not working.
      (I use: dev c++ wirh W7 32 bit)

      Reply

Leave a Reply

Your email address will not be published. Required fields are marked *