QUOTE(ihatepikingnames @ 6 Nov, 2006 - 05:22 AM)

I dont want the password to be visible on screen... HOW?!
CODE
void Auth()
{
ifstream Passfile("password.txt", ios::in);
Passfile>>inpass;
ifstream Userfile("username.txt", ios::in);
Userfile>>inuser;
system("cls");
cout<<"USERNAME: ";
cin>>user;
cout<<"PASSWORD: ";
cin>>pass; //RIGHTHERE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Userfile.close();
Passfile.close();
if(user==inuser&&pass==inpass)
{
cout<<"\nHit enter to continue to members area";
getch();
Members();
}
else
{
cout<<"Invalid Username or Password!";
getch();
}
}
thanks in advance!
This is not possible in any standard way. You have to give use more details like compiler and OS?
QUOTE(NyeNye @ 6 Nov, 2006 - 07:42 AM)

what would be your password lenght..
CODE
for (i=0; i<30; i++) //user can input max 30 character
{
destination[i] = getch(); //will get input character from user
//and character remains invisible
cout <<"*"; //will display '*'insted of character
if (destination[i]==13) //until enter key pressed (enter-13)
goto end;
}
This doesn't look like a good solution.