title: How to compare "text" (string) to be used as the condition for if statement
body: <p>I want to ask the user if it wants "Classic Mode" or "Advanced Mode", I saved the answer in a variable and was trying to use it inside an IF statement, but it just doesn't work, let me show this part of my code for example:</p>
  
  <pre><code>int mode;
  
  printf("\n Pick the desired mode: ");
      scanf("%i",&amp;mode);
  
      if(mode=="Classic"){
          printf("It worked!");
          system("pause");
      }
  
      if(mode=="Advanced"){
          printf("It worked!");
          system("pause");
      }
  </code></pre>
  
  <p>It just goes straight to the end after the question and returns values close to 2 billion...</p>
  
  <p>I thought I was getting error because is a value inside the variable, then I tried with a string, but I got the same result!</p>
  
  <p><strong>@EDIT ==============================</strong></p>
  
  <p>Ok guys, thanks for all the help, you guys are fast here in StackOverflow!</p>
  
  <p>At the end it was the most idiot thing ever using <code>strcmp</code>, easy to understand and easy to use, fixed it all...
  I had no idea about this one, if i knew it before, it would've saved a lot of time!</p>