displaying * in password entery

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: May 2004
Posts: 15
Reputation: dooda man is an unknown quantity at this point 
Solved Threads: 0
dooda man dooda man is offline Offline
Newbie Poster

displaying * in password entery

 
0
  #1
Oct 6th, 2004
how can i make the program display * in password entery
i tried


while(getch())
{
cout<<"*";
}

but it didnt work
plz tell me how
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 7,625
Reputation: Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute 
Solved Threads: 717
Team Colleague
Narue's Avatar
Narue Narue is offline Offline
Code Goddess

Re: displaying * in password entery

 
0
  #2
Oct 6th, 2004
>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.
I'm here to prove you wrong.
Reply With Quote Quick reply to this message  
Join Date: Aug 2004
Posts: 153
Reputation: cosi is an unknown quantity at this point 
Solved Threads: 1
cosi's Avatar
cosi cosi is offline Offline
Junior Poster

Re: displaying * in password entery

 
0
  #3
Oct 8th, 2004
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


Originally Posted by dooda man
how can i make the program display * in password entery
i tried


while(getch())
{
cout<<"*";
}

but it didnt work
plz tell me how
In a world without walls or fences,
What use are Windows and Gates.
Reply With Quote Quick reply to this message  
Join Date: May 2004
Posts: 256
Reputation: FireNet will become famous soon enough FireNet will become famous soon enough 
Solved Threads: 6
FireNet's Avatar
FireNet FireNet is offline Offline
Posting Whiz in Training

Re: displaying * in password entery

 
0
  #4
Oct 8th, 2004
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...
See what you can, remember what you need

Fourzon | Earn via Coding
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC