question about precedence (i think)
This is my problem:
I want to have "Password: " before my input... for example:
Password: _
_=cursor.
for my code:
cout<<"Password: ";
for(i=0;i<16;i++)
{
temp=getch();
if(temp == '\r')
break;
else
{
pword[i]=temp;
putch('*');
}
}
i would think that this would work, but... i get this instead:
"_(password input)Password:"
so Password: is displayed after i input it not before. So is there some sort of precedence that im missing and how can i fix it? Any ideas and or help is appreciated.
- rootnix