-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.c
50 lines (47 loc) · 1.39 KB
/
main.c
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
#include <stdio.h>
#include <stdlib.h>
int menu();
int password(char *n,char*p);
char c = ' ';
int i = 0;
int write();
int read();
int exit1();
int main() {
system("COLOR 71");
int c;// c=condition
char n[20],p[20];// n=name, p=password
printf("\t\t ###### \n");
printf("\t\t # # # # #### ###### # # # # # \n");
printf("\t\t # # # # # # # ## # # # # \n");
printf("\t\t ###### ###### # # ##### # # # # ## \n");
printf("\t\t # # # # # # # # # # ## \n");
printf("\t\t # # # # # # # ## # # # \n");
printf("\t\t # # # #### ###### # # # # # \n");
printf("\n\n ********** Welcome To The Personal Diary **********\n\n");
printf("\t\t\t \"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\n\n");
printf(" Lets Verify Your Identity \n\n\n");
system("pause");
printf("Username : ");
scanf("%s",n);
printf("Password : ");
while(i<20)
{
p[i]=getch();
c=p[i];
if(c==13) break;
else printf("*");
i++;
}
p[i]='\0';
i=0;
c=password(n,p);
if (c==1){printf("\n\Verification Successful\n");
system("COLOR 0A");
system("pause");menu();}
else
system("COLOR 49");
{printf("\n\Verification Error, Please Try Again\n");
system("pause");system("cls");main();
}
}