944,129 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 5290
  • C++ RSS
Oct 6th, 2004
0

displaying * in password entery

Expand Post »
how can i make the program display * in password entery
i tried


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

but it didnt work
plz tell me how
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
dooda man is offline Offline
15 posts
since May 2004
Oct 6th, 2004
0

Re: displaying * in password entery

>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.
Administrator
Reputation Points: 6442
Solved Threads: 1393
Bad Cop
Narue is offline Offline
11,807 posts
since Sep 2004
Oct 8th, 2004
0

Re: displaying * in password entery

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


Quote 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
Reputation Points: 17
Solved Threads: 1
Junior Poster
cosi is offline Offline
153 posts
since Aug 2004
Oct 8th, 2004
0

Re: displaying * in password entery

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...
Reputation Points: 108
Solved Threads: 7
Posting Whiz in Training
FireNet is offline Offline
256 posts
since May 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: Alex Cavnar - rectangle problem not solved
Next Thread in C++ Forum Timeline: Loop program help





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC