This is a discussion on Display input(password) as asterisk(*) within the C++ Programming forums, part of the General Programming Boards category; nevermind...
Last edited by seePLUSPLUSn00b; 09-29-2008 at 02:00 PM.
No real standard way to do it but include <conio.h> and use getch() in a while loop. Getch reads the keyboard input in a character-by-character method.
The problem is that, as twomers noted, the standard library facilities provide no way of doing what you want to do. <iomanip> will be of no use here. Consequently, your best bet with something simple is the non-standard getch() from the non-standard <conio.h> header.
This has also been solved loads of times here, so search the forums and you'll find something.