>> if (uname AND pword == true);
Do you need the ';' there, and the AND ... is that legal?
I would use:
Code:
if ( uname == true && pword == true )
{
cout<< "You have successfully logged in!";
}
or something. However, it would work better if you had:
Code:
if ( uname == 42 && pword == 42 )
// you have set the username and the password
{
cout<< "You have successfully logged in!";
}
else
{
cout<< "That is not a valid username or password!";
}
You can set the numbers of the username and the password. It may be better to use a string for the username though.