Hi,
I'm trying to write a code that on cin of a password it must not show the exact password but type the symbol *..
I'm trying to look for a function that can replace the entry on input with a symbol *
please help
Hi,
I'm trying to write a code that on cin of a password it must not show the exact password but type the symbol *..
I'm trying to look for a function that can replace the entry on input with a symbol *
please help
Not possible with standard C++. This has been asked million times already. Use the search function.
You can use getchar() to that effect though
http://www.cplusplus.com/reference/c...o/getchar.html
Using the example code from that website, before the line
putCode:putchar (c);
Code:c = '*';
This question seems vaguely familiar... Perhaps if there were some means by which to traverse the forums to possibly find a question that may have been previously asked...
Try this function:
http://www.gnu.org/software/libtool/...c/getpass.html
Last edited by EVOEx; 11-13-2008 at 04:12 PM.