I need to write a simple username password program, and I would like the characters to appear on the console as * not the character typed. I would really like some help with this, thank you.
This is a discussion on simple username password program within the C Programming forums, part of the General Programming Boards category; I need to write a simple username password program, and I would like the characters to appear on the console ...
I need to write a simple username password program, and I would like the characters to appear on the console as * not the character typed. I would really like some help with this, thank you.
Okay, you have to show what you have done so far - them's the rules - its not a hire board
Thought for the day:FLTK:The most fun you can have with your clothes on.You got big stones calling out GCC! (anduril462)
"If I had thought of it and had some marketing sense every computer and just about any gadget would have had a little 'C++ Inside' sticker on it'"
You need to use some kind of library for that, unfortunately. If you are on *nix, I think readline will be able to do it:
The GNU Readline Library
C programming resources:
GNU C Function and Macro Index -- glibc reference manual
The C Book -- nice online learner guide
Current ISO draft standard
CCAN -- new CPAN like open source library repository
3 (different) GNU debugger tutorials: #1 -- #2 -- #3
cpwiki -- our wiki on sourceforge
It is important to note that there is no standard C way of doing this, however:
FAQ- How do I get input without the user pressing enter?
Manasij Mukherjee | gcc-4.8.0 @Arch Linux
Slow and Steady wins the race... if and only if :
1.None of the other participants are fast and steady.
2.The fast and unsteady suddenly falls asleep while running !
>> Is there a ... way to not show any characters at all during the input ?
To enter password without displaying it
"get_password" using _getch():
Problem with inputting password?
_getch() for *nix:
while getch question
gg