#include<iostream>
#include<conio.h>
using namespace std;
int main()
{
char c=' ';
string pass="";
cout<<"enter pass";
while(c!=13)// key
{
c=getch();
if(c!=13)
{
pass=+c;
cout<<"*";
}
}
if(pass=="12345")
cout<<"acepted "<<endl;
else
cout<<"not accepted ";
getch();
}
#include<conio.h>
using namespace std;
int main()
{
char c=' ';
string pass="";
cout<<"enter pass";
while(c!=13)// key
{
c=getch();
if(c!=13)
{
pass=+c;
cout<<"*";
}
}
if(pass=="12345")
cout<<"acepted "<<endl;
else
cout<<"not accepted ";
getch();
}
Comments
Post a Comment