Valhalla Legends Forums Archive | C/C++ Programming | Password mask in console

AuthorMessageTime
drivehappy
I was wondering how to place a static character ('*') in place of characters entered at cin. Is it possible to do since you really only have control after cin? Is there anything else that would work?

EDIT: grammer
December 2, 2003, 4:15 PM
DarkMinion
Simple: Don't use cin. Use getc() or the like.
December 2, 2003, 5:36 PM
iago
getc() has the same problem
December 2, 2003, 6:03 PM
Skywing
One option might be to output "\b*" after each letter entered. Another option might be to use OS-dependent input routines that don't echo to the console.
December 2, 2003, 6:12 PM
TheNewOne
In Visual C++ u right click the edit bar you wanr to be apssworded, then you hit properties.. goto style and click the checkbox where it says password.. hope i could help
December 21, 2003, 5:10 PM
Skywing
[quote author=TheNewOne link=board=30;threadid=4024;start=0#msg36610 date=1072026614]
In Visual C++ u right click the edit bar you wanr to be apssworded, then you hit properties.. goto style and click the checkbox where it says password.. hope i could help
[/quote]
Note that this topic is about consoles and not edit controls.
December 21, 2003, 7:09 PM

Search