ok sorry guys it's me again


I just wanted to know how could do something like
prompt the user for input but they can only type a certain thing like if I had something like


char password[5] = "open";
char user_password[5];

cout << "Please Type Password Here\n";
cin >> user_password;


to find out if the user_password is the same as password
would I do something like


if (user_password = password)
blah blah;




would that be a correct way of checking
cause I think I tried that and I didnt get the outcome I expected


plz if u uinderstand what I'm getting at can u plz help me


cheers


stealth