Hello Everyone I create A login form project in dev-c++ .
UserName="itdunya"
Pass=12345
secret key=@;
Please Tryit
#include<iostream>
#include<conio.h>
#include<math.h>
using namespace std;
int main(){
std::string id,password,skey,key,error;
float pass;
id="please Enter your UserName:";
password="please Enter your password:";
cout<<""<<id;
cin>>id;
cout<<""<<password;
cin>>pass;
if(id=="itdunya" && pass==12345){
cout<<"Welcome you login as "<<id<<endl;
cout<<"Your today Activity is Here Enter A secret key ";
skey="Enter secret key here: ";
cin>>key;
cout<<"\n copyright Mega Mind All right reserved"<<endl;
if(key== "@"){
cout<<"welcome your account has been activated! Thanks"<<endl;
}
else{
cin>>key;
error="error activation acount try enter your key again";
}
}
else{
cout<<"we are so sorry that your login id "<<id;
cout<<" and Password do not match in our records try to login again";
}
getch();
}
Bookmarks