Tell me, please, how to do it in C ++ so that as you type numbers on the console, stars are displayed or something else?

    1 answer 1

    I do not understand, and here the redirection.

    If you read characters from the keyboard and you want the asterisks to have asterisks instead, just read by calling getch () (it does not wait for ENTER) and write putchar ('*') instead of the entered character.