+ 3

🏆Challenge🏆:Taking input from user as ******** (display)just like we take password as input in form.How can I do this in C++?

I am trying to write a program which takes username and password as input in C++. I want that when user enters the username it will display regularly, when the user enters the password then instead of displaying the keys been pressed it will display *** and so on. So that any person sitting nearby the user when he is entering his password will not able to see the password on screen. I want something like this in C++ https://code.sololearn.com/Wq6GzFkDq4n2/?ref=app please help me how can I do this...........

23rd Oct 2017, 1:07 PM
Prathamesh Joshi
Prathamesh Joshi - avatar
2 odpowiedzi
+ 4
https://code.sololearn.com/cWdP87cJRms7/?ref=app Try this for Windows, in Code::Blocks or Visual Studio.
23rd Oct 2017, 2:10 PM
Solo Wanderer 4315
Solo Wanderer 4315 - avatar
+ 3
thanks
23rd Oct 2017, 2:45 PM
Prathamesh Joshi
Prathamesh Joshi - avatar