In a password checking program,when the password is enterd it should not be displayed.Which function should be used for that? If scanf() and gets() are used the text entered will be displayed.
This is a discussion on To enter password without displaying it in a password checking program within the C# Programming forums, part of the General Programming Boards category; In a password checking program,when the password is enterd it should not be displayed.Which function should be used for that? ...
In a password checking program,when the password is enterd it should not be displayed.Which function should be used for that? If scanf() and gets() are used the text entered will be displayed.
Set "PasswordCharacter" to "*" in the TextBox properties.
MagosX.com
Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime.
Also here - To enter password without displaying it
Since you said scanf, I'll assume you want a C answer, and not a C# answer.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
I support http://www.ukip.org/ as the first necessary step to a free Europe.