You know when you enter a password and it's masked by '*'s? I've been trying to implement that, but with no luck. Here's an example:
Please don't moan about my use of char* and casts, that's not my problem (yet lol).Code:int main()
{
char* in_pwd = (char*) calloc(20, sizeof (char));
cout << "Password: ";
// enter solution here :D
// compare etc
return 0;
}
I figure I need to output a backspace then a '*' for each character input?
