Link to home
Start Free TrialLog in
Avatar of fyuber
fyuber

asked on

hide console input

Using C++, how to display a prompt for a password, ie a cin that will hide the text that the user types in?
Avatar of sunnycoder
sunnycoder
Flag of India image

Hi fyuber,

set noecho and use getch()
man getch() for more info

Cheers!
Sunny:o)
Avatar of fyuber
fyuber

ASKER

Sorry, Im rather new to this. How to set noecho?
ASKER CERTIFIED SOLUTION
Avatar of brettmjohnson
brettmjohnson
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of fyuber

ASKER

thanks, it works but i still want to know how to use sunny's method. guess I should increase points but I'll have to wait for them to accumulate.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial