-
Notifications
You must be signed in to change notification settings - Fork 0
/
FLASH.H
80 lines (68 loc) · 981 Bytes
/
FLASH.H
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#include<iostream>
//#include<conio.h>
#include<stdlib.h>
#include<cstdlib>
#include<stdio.h>
#include<time.h>
using namespace std;
int random(int y)
{
return(rand()%y);
}
void randomize()
{
srand(time(0));
}
void clrscr(void)
{
system("CLS");
}
char getche()
{
getchar();
return(getchar());
}
void getch()
{
//getchar();
getchar();
}
void flash(int aa,char a[],int xqw)
{
//xqw=qqqppp;
if(xqw)
for(int j=0;j<aa;j++)
{{
for(long int i=0;i<500;i+=3)
{
cout<<"\n\n\n\n\n\n\t\t\t";
for(int k=0;k<=j;k++)
{
cout<<a[k];
}
cout<<"\t\t\n\n\n\n";
for(int c=(aa-2);c<j;c++)
for(int d=0;d<50;d+=2)
{
cout<<" ";
}
clrscr();
} } }
else
{for(int j=0;j<aa;j++)
{{
for(long int i=0;i<1000;i++)
{
cout<<"\n\n\n\n\n\n\t\t\t";
for(int k=0;k<=j;k++)
{
cout<<a[k];
}
cout<<"\t\t\n\n\n\n";
for(int c=(aa-2);c<j;c++)
for(int d=0;d<500;d++)
{
cout<<" ";
}
clrscr();
} } } } }