0
how can we create stars instead of text in password column in c++
i mean to say that i have created a login password in c++ but i don't know how to make stars instead of text in password column like i have done in java
4 Respostas
+ 12
Make it that for every input you get the '*' instead. It's not that hard, try it out
+ 1
but how?? plz elaborate
0
char s[20];
int i = 0;
while(i < 20)
{
if (s[i] = _getch())
cout << "*";
i++;
}
you can modify it to your code, but the inside if statement is easy way to get it done.