title: Using multiple parameters in conditional statements
body: <p>In the following code I have been trying to get it to check for multiple parameters (when checking if the username AND password are correct).</p>
  
  <pre><code> string username;
      string password;
      cout &lt;&lt; "Hello there. To access this program, please put in your user name and password." &lt;&lt; endl;
      cout &lt;&lt; "Username: ";
      cin &gt;&gt; username;
      cout &lt;&lt; "Password: ";
      cin &gt;&gt; password;
      if(username != "admin", password != "therealpassword"){
          do{
              cout &lt;&lt; "Username or password is incorrect." &lt;&lt; endl;
              cout &lt;&lt; "Username: ";
              cin &gt;&gt; username;
              cout &lt;&lt; "Password: ";
              cin &gt;&gt; password;
          }while(username != "admin", password != "therealpassword");
      }
  </code></pre>
  
  <p>For whatever reason, when running the program and I put in the incorrect username, but the correct password, it allows me to login. At the (do...while) section, if I put in the wrong username, but the right password again, I am able to login correctly still, even though the username is incorrect. How can I get this to check for both the username and password? Any and all help is appreciated.</p>