| | |
password input
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
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 |
api application array arrays based binary c++ c/c++ calculator char char* class classes code compile compiler console conversion count delete deploy desktop directshow dll download dynamic dynamiccharacterarray encryption error file forms fstream function functions game givemetehcodez google graph gui homeworkhelp homeworkhelper iamthwee ifstream input int integer java lib linkedlist linker linux list loop looping loops map math matrix memory news number numbertoword output pointer problem program programming project python random read recursion recursive reference return rpg simple sorting string strings struct temperature template templates test text text-file tree unix url variable vector video visual visualstudio win32 windows winsock wordfrequency wxwidgets






