[QUOTE=rajatC;500539]use [inlinecode]getch()[/inlinecode] to get a character without echoing it on the screen and print * for each entered character..and save each character in a char array
[code=c++]
char pswrd[20];

int i=0;
while((pswrd[i]=getch())!='\r')
{
cout<<"*";
i++;
}[/code][/QUOTE] 

this is not working in cpp