-
Notifications
You must be signed in to change notification settings - Fork 0
/
NFUNC.H
61 lines (56 loc) · 1.53 KB
/
NFUNC.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
// Code Last Compiled on 13 June, 2018
// nfunc.h
// All non-File Functions
// Code Developed By : Himesh Nayak, XII-A, JKPS
void logoAnimation()
{
int i = 60;
clrscr();
cout<<setw(i)<<" ------------------------------------- "<<endl;
cout<<setw(i)<<"| |"<<endl;
cout<<setw(i)<<"| ------- ------- . | |"<<endl;
cout<<setw(i)<<"| | | | | . | |"<<endl;
cout<<setw(i)<<"| | | | | . | |"<<endl;
cout<<setw(i)<<"| | | | | . | |"<<endl;
cout<<setw(i)<<"| | | | | . | |"<<endl;
cout<<setw(i)<<"| | | | | .| |"<<endl;
cout<<setw(i)<<"| ------- ------- ------- |"<<endl;
cout<<setw(i)<<"| |"<<endl;
cout<<setw(i)<<" ------------------------------------- "<<endl;
cout<<setw(i)<<endl;
cout<<setw(42)<<"UCON"<<endl;
cout<<setw(53)<<"U are Connected On Network"<<endl<<endl;
cout<<setw(80)<<"Developed By Himesh Nayak And Aaryan Arora XII-A\n\n";
}
void hashPass(char p[20])
{
for (int i = 0; i < strlen(p); i++)
p[i] += i;
}
void enterPass(char p[20])
{
int i = 0;
char a;
while(i < 20)
{
a = getch();
if ((a>= 'a' && a <= 'z')||(a>= 'A' && a <= 'Z')||(a>= '0' && a <= '9'))
{
p[i] = a;
i++;
cout<<'*';
}
else if (a == '\b')
{
cout<<"\b \b";
i--;
}
else if (a == '\r')
{
p[i] = '\0';
break;
}
}
hashPass(p);
cout<<endl;
}