C Program to Create Colorful Loading Progressbar in Console Using Graphics.h Library Full Project For Beginners

  • Post author:
  • Post category:c++
  • Post comments:0 Comments

 

 

progressbar.c

 

 

#include <stdio.h>
#include <conio.h>
#include <graphics.h>
#include <dos.h>

int main()
{
	inti,gd=DETECT,gm;
	initgraph(&gd,&gm,"C:\\TURBOC3\\BGI");
	
	settextstyle(DEFAULT_FONT,HORIZ_DIR,2);
	outtextxy(177,180,"Loading, Please Wait...");
	
	for(i=190;i<510;i++)
	{
		delay(30);
		line(i,210,i,230);
	}
		
	closegraph();
	getch();
	
	return 0;
}

Leave a Reply