| | |
password input
![]() |
•
•
Join Date: Feb 2007
Posts: 11
Reputation:
Solved Threads: 0
Hello,
How to read an input(string) from the user keyboard without displaying it on the I/S, but to disply a character that I specify like (*) instead of the actual inputted character.. and if possible to store the entry on array
right now, I can't find any replacement for getch() which is a nonstandard function and doesn't exactly do what I want..
getline() as far as I know can't hide the input..
Thanks
How to read an input(string) from the user keyboard without displaying it on the I/S, but to disply a character that I specify like (*) instead of the actual inputted character.. and if possible to store the entry on array
right now, I can't find any replacement for getch() which is a nonstandard function and doesn't exactly do what I want..
getline() as far as I know can't hide the input..
Thanks
Last edited by Mac.Z; Mar 26th, 2007 at 5:38 pm.
Well done, you've realised there is no standard way to do that.
Your only option is to use a non-standard method, which is of course compiler and or OS dependent. Do you wanna see it?
http://faq.cprogramming.com/cgi-bin/...&id=1043284392
Your only option is to use a non-standard method, which is of course compiler and or OS dependent. Do you wanna see it?
http://faq.cprogramming.com/cgi-bin/...&id=1043284392
Last edited by iamthwee; Mar 26th, 2007 at 5:37 pm.
*Voted best profile in the world*
Yeah well there ya go. It probably doesn't matter until you hit the real world. Schools just try to teach the fundamentals, logic etc, and pseudo code.
There are too many pitfalls persistent in c/c++ to catch out the unwary. You only get to know about them with experience.
There are too many pitfalls persistent in c/c++ to catch out the unwary. You only get to know about them with experience.
Last edited by iamthwee; Mar 26th, 2007 at 5:46 pm.
*Voted best profile in the world*
![]() |
Similar Threads
- Shopping Cart Not Working (ASP.NET)
- Need help with password strength test script (PHP)
- Help with password update (PHP)
- Help with .js JAVASCRIPT file!!!!!?!!?!? (JavaScript / DHTML / AJAX)
- line up JTextField GUI java & write to file (Java)
- connecting to mssql with using jsp (JSP)
- the form cant remember me ????? (PHP)
- Registration form help (ColdFusion)
Other Threads in the C++ Forum
- Previous Thread: Polly's suitors in ONE HOUR!
- Next Thread: Arrays and for loops
| Thread Tools | Search this Thread |
action api array auto based beginner binary bitmap c++ c/c++ calculator challenge char class classes code coding compile console conversion count createcopyofanyfileinc delete deploy desktop developer directshow dll download dynamic dynamiccharacterarray email encryption error file forms fstream function functions game garbage givemetehcodez graph gui hmenu homeworkhelp homeworkhelper iamthwee ifstream input insert int integer java lib linkedlist linker loop looping loops map math matrix memory multiple news node noob output parameter pointer primenumbersinrange problem program programming project python random read recursion reference rpg sockets string strings temperature template test text text-file tree url variable vector video win32 windows winsock wordfrequency wxwidgets






