-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainProj.cpp
63 lines (61 loc) · 1.16 KB
/
MainProj.cpp
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
// MainProj.cpp
// Contains Main Function and include files
// Code Last Compiled on 13 June, 2018
// Code Developed By : Himesh Nayak, XIIA, JKPS
#include<fstream.h>
#include<conio.h>
#include<ctype.h>
#include<string.h>
#include<stdio.h>
#include<stdlib.h>
#include<iomanip.h>
#include"hangman.cpp"
#include"tictac.cpp"
#include"sudoku.cpp"
#include"nfunc.h"
#include"classes.h"
#include"filefunc.h"
void main()
{
int ch;
do {
logoAnimation();
cout<<"Press 1 to Login\n";
cout<<"Press 2 to Signup with UCON\n";
cout<<"Press 0 to Exit\n";
cout<<"Enter your Choice : ";
cin>>ch;
if (ch == 1)
{
char user[25], pass[20];
cout<<"\n\nEnter Username : ";
gets(user);
cout<<"Enter Password : ";
enterPass(pass);
if (login(user, pass)== 1)
{
homeScreen(user);
}
else
{
cout<<"The Username or Password didn't match...";
getch();
}
}
else if (ch == 2)
{
cout<<endl;
createA();
}
else if (ch == 0)
{
cout<<"Exiting Ucon...";
getch();
}
else
{
cout<<"You have entered a wrong choice\n\n";
continue;
}
}while(ch!=0);
}