-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathALOADBAR.C
More file actions
45 lines (35 loc) · 770 Bytes
/
ALOADBAR.C
File metadata and controls
45 lines (35 loc) · 770 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/******** A Loading Bar and is made with TurboC *********/
#include"graphics.h"
#include"conio.h"
#include"stdio.h"
#include"dos.h"
void main()
{
int gd=DETECT,gm,i=275,x=40,y=15,j,a;
initgraph(&gd,&gm,"C:\\TC\\bgi");
setcolor(RED);
arc(274,270,90,270,10);
arc(274,270,90,270,9);
arc(274,270,90,270,8);
arc(375,270,270,90,8);
arc(375,270,270,90,9);
arc(375,270,270,90,10);
line(275,260,375,260);
line(275,261,375,261);
line(275,279,375,279);
line(275,280,375,280);
setcolor(WHITE);
setfillstyle(1,GREEN);
circle(275,270,8);
floodfill(280,275,WHITE);
for(j=1;j<=100;j++)
{
gotoxy(x,y);
printf("%d %%",j);
a=i++;
setcolor(GREEN);
circle(a,270,8);
delay(100);
}
getch();
}