title: C++ if statements using strings not working as intended
body: <p>I have searched for this error but noone seems to be having the same problem as me. I am trying to make a basic text based RPG game in C++ to learn, and I want the user to be able to type what they want to do, for example if they type <code>ATTACK</code> they will attack the monster, but my if statement:</p>
  
  <pre><code>if((current_move == "ATTACK") || (current_move == "attack"))
  </code></pre>
  
  <p>returns false!</p>
  
  <p>Here is the full function below:</p>
  
  <pre><code>while(monster_health &gt; 0)
      {
          std::cin &gt;&gt; current_move;
          std::cout &lt;&lt; current_move;
          if((current_move == "ATTACK") || (current_move == "attack"))
          {
              std::cout &lt;&lt; "You attacked the monster!\n";
  
              double damage = return_level(xp) * 1.2;
  
              std::cout &lt;&lt; "You did " &lt;&lt; damage &lt;&lt; " damage!\n";
  
              monster_health -= damage;
              if(monster_health &lt; 0)
              {
                  monster_health = 0;
                  break_out = true;
              }
          }
          else if(current_move == "FLEE")
          {
              std::cout &lt;&lt; "You ran away...\n";
              break_out = true;
          }
          else
          {
              std::cout &lt;&lt; "Sorry, I didn't understand, what will you do? ATTACK or FLEE?\n";
          }
      }
  </code></pre>
  
  <p>I just keep getting "Sorry, I didn't understand" message;</p>
  
  <p>Please let me know of any other errors or bad practises as I've only just started learning :)</p>