forked from Anustup900/mentor-CSOC-Alumini
-
Notifications
You must be signed in to change notification settings - Fork 3
/
LOGIN.cpp
33 lines (31 loc) · 972 Bytes
/
LOGIN.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
#include<iostream>
#include<fstream>
using namespace std;
int login()
{ int n{};
fstream in,of;
string username;
string gmail;
cout<<"-----------+---WELCOME TO RANCHO's APP----------------------\n";
cout<<"1.Login Page\n2.Sign Up Page\n3.See Details of alumni\n4.TO see Frequently Asked questions and Answers\n5.FOR OPPURTUINTY UPDATES\n";
cout<<"Enter the Number respectively\n";
cin>>n;
if(n==2){
cout<<"\n\n\n SIGN UP PAGE\n";
cout<<"Username -";
cin>>username;
in.open("C:\\Users\\pc\\Documents\\login.txt",ios::out|ios::app);
of.open("C:\\Users\\pc\\Documents\\username.txt",ios::out|ios::app);
in << username << "\t";
of<<username<<"\t";
string password;
cout << "\nPassword -> ";
cin >> password;
in << password <<" \t ";
cout<<"\n Gmail-> \n";
cin>>gmail;
in<<gmail<<"\n";
of<<gmail<<"\n";
}
return n;
}