Skip to content

Commit 91643f1

Browse files
Create loadingbar.cpp
1 parent b6f8f13 commit 91643f1

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

loadingbar.cpp

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#include<iostream.h>
2+
#include<conio.h>
3+
#include<graphics.h>
4+
#include<dos.h>
5+
6+
void main()
7+
{
8+
int x=170,i,gdriver=DETECT,gmode;
9+
initgraph(&gdriver,&gmode,”c:\tc\bgi”);
10+
settextstyle(DEFAULT_FONT,HORIZ_DIR,2);
11+
outtextxy(170,180,”LOADING,PLEASE WAIT”);
12+
13+
for(i=0;i<300;++i)
14+
{
15+
delay(30);
16+
line(x,200,x,220);
17+
x++;
18+
}
19+
getch();
20+
closegraph();
21+
}
22+

0 commit comments

Comments
 (0)