Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Old-School-Game/main.cpp
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
47 lines (41 sloc)
965 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "auth.hpp" | |
void operation(int option){ | |
string new_password; | |
Authentication player1; | |
string username, password; | |
cout<<"Please enter the userName "; | |
cin>>username; | |
cout<<"Please enter the password "; | |
cin>>password; | |
switch(option){ | |
case 1: | |
player1.loginValidation(username,password); | |
break; | |
case 2: | |
player1.new_user(username,password); | |
break; | |
case 3: | |
cout<<"Please enter the new password "; | |
cin>>new_password; | |
player1.change_password(username,password,new_password); | |
break; | |
case 4: | |
player1.delete_user(username, password); | |
break; | |
default: | |
cout<<"Cannot perform this please try again "<<endl; | |
} | |
return; | |
} | |
int main(){ | |
int des; | |
cout<<"Please enter 1 for SignIn "<<endl; | |
cout<<"Please enter 2 for SignUp "<<endl; | |
cout<<"Please enter 3 for Change password "<<endl; | |
cout<<"Please enter 4 for Delete Account "<<endl; | |
cout<< "Please enter the desicion"; | |
cin>>des; | |
system("clear"); | |
operation(des); | |
return 0; | |
} |