+ 1
how to get * instead of characters while typing password?
6 Respostas
+ 2
just giving the algorithm,
declare a single char ch
declare a string s
getch(ch)
int i=0
while ch!= (enter) or (space)
{
getch(ch)
s[i++]=ch
cout<<"*"
}
hope this helps
+ 2
I have attached the class file here
Note: I haven't taken care for special key like up/down key etc
here is the link: https://drive.google.com/open?id=0B4YLt8CgLlkXYU1ONmRyQmdCU3c
enjoy😃😃
0
are you writing console program ??
0
ya
0
tushar nd abhishek thnx
that really helped
0
no problem 😃 just vote the answer thanks