C++/password nd username
Expert: vijayan - 7/27/2010
Questionhello sir,i am making a project in which i need the output like dis
username : digital
password : *****
and also to check whether th password is correct
thanks for taking the trouble
AnswerThere is no standard C++ feature so that characters entered by the user will not be echoed — C++ doesn't even require your system to have a keyboard or a screen.
Some C++ implementations may provide this functionality; but since it is not part of the C++ standard, each one does it somewhat differently. Please read the documentation that came with your compiler for details on your particular implementation.
Or you could use a library like curses or its clones (ncurses, pdcurses etc) to get this functionality. See:
http://en.wikipedia.org/wiki/Curses_%28programming_library%29
http://en.wikipedia.org/wiki/Ncurses
http://pdcurses.sourceforge.net/