Commit f179ae25 authored by Kajal's avatar Kajal

Fix: Adding Login Prompts

parent 8eca7243
#include<iostream> #include<iostream>
#include"utils.h" #include"utils.h"
#include <iostream>
#include "utils.h"
#include <string>
using namespace std; using namespace std;
int main() { int main() {
char* nm, pwd; char* nm, pwd;
cout<<"Enter your name"<<endl; string nm, pwd;
cout<<"Enter Name:"<<endl;
cin>>nm; cin>>nm;
cout<<"Enter your password"<<endl; cout<<"Enter Password:"<<endl;
cin>>pwd;
if (login(nm, pwd)==true) cout<<"Success!"<<endl;
else cout<<"Login failed :("<<endl;
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment