Accepting Passwords in C++
The general way to accept passwords is to print a special character conventionally a '*' in the foreground while we store the actual character in the background.
I have done this in a TC compiler with the help of getch() function.
Under GCC, I found that the function getch() is supported by curses.h instead of stdio.h as in a TC compiler.
But when I have tried out a simple program as follows, the program gives few errors when compiled
int c = getch();
Could you please tell me what the problem might be and the way to solve it.
Thanks in advance.