title: Ask name, if wrong ask again, if right, keep going ( Not working ) C++
body: <p>That's my code. What i'm trying to do here is a code that Asks for a name ( like a pass ) if the name is wrong, then the program says those 3 error messages and asks the name again, until one of the 2 white-listed names is given, then just keep going with the code.</p>
  
  <pre><code>int main(void)
  {
  setlocale(LC_ALL, "Portuguese");
  string Name = "";
  cout &lt;&lt; "Whats your name dude ?" &lt;&lt; endl;
  cin &gt;&gt; Name;
  
  if (Name == "ighor" ||
      Name == "indio")
      {
      cout &lt;&lt; "Welcome friend =D" &lt;&lt; endl;
      system("pause");
      system("cls");
      }
      else
      {
          do  
          {
              cout &lt;&lt; "Sorry, wrong name =[" &lt;&lt; endl;
              system("pause");
              system("cls");
              cout &lt;&lt; "I'll give you another chance =]" &lt;&lt; endl;
              system("pause");
              system("cls");
              cout &lt;&lt; "Write your name again" &lt;&lt; endl;
              cin &gt;&gt; Name;
  
              if (Name == "ighor" ||
                  Name == "indio")
              {
                  continue;
              }
  
          }   while (Name != "ighor" ||
                     Name != "indio");
  
  
      }
  
  cout &lt;&lt; "Whats up" &lt;&lt; Name &lt;&lt; endl;
  system("pause");
  system("cls");      
          return 0;
  
  }
  </code></pre>
  
  <p>My tests with this code gave me this :<br>
  If i put a white-listed name ( indio or ighor ) i get the massage of correct name </p>
  
  <blockquote>
    <p>"Welcome friend =]".</p>
  </blockquote>
  
  <p>If i put a wrong name, i get the massage of wrong name, nice, then i'm asked to enter the name again, i put one of the white-listed names and it keeps saying that it's the wrong name, wrong names also show wrong name message.</p>