how can i make the program display * in password entery
i tried
while(getch())
{
cout<<"*";
}
but it didnt work
plz tell me how
>but it didnt work
What were you expecting and what did it do that wasn't what you wanted? I can guarantee that you need more logic than that to mask a password entry.
You have to turn terminal local echo off. This is often specific to what kind of terminal you are using. Are you using the windows command prompt?
Ed
how can i make the program display * in password entery
i tried
while(getch())
{
cout<<"*";
}
but it didnt work
plz tell me how
Search the forum,I remmember typing out an entire function to get passwords while displaying *'s and supporting backspace too.
In a hurry gota go...
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.