Does anyone know code to use asterisks instead of numbers for a password on C++ code?

Recommended Answers

All 3 Replies

assuming the number is inputted by the user:

get user input 
loop trough each character and look if it's a digit
    replace the character with *

Have a look at the isdigit() function

and you do that how?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.