bool bAuth1,bAuth2,bAuth3;
if(_getch()=='p')bAuth1==true;
else{bAuth1==false;}
cout<<"*";
if(_getch()=='i')bAuth2==true;
else{bAuth2==false;}
cout<<"*";
if(_getch()=='e')bAuth3==true;
else{bAuth3==false;}
cout<<"*";
if(bAuth1==true&&bAuth2==true&&bAuth3==true)
{
cout<<"Welcome.";
}
else
{
cout<<"Incorrect password";
}
I even searched on google and youtube for it but can't find any clear solutions.
This post has been edited by hulla: 04 July 2011 - 06:12 AM

New Topic/Question
Reply




MultiQuote










|