title: using user input such as YES and NO to control program flow in C++
body: <p>I'm making a small program that uses a if else statement, but instead of using numbers to control the flow i want to be able to make the control work with with yes and no;</p>
  
  <p>for example:</p>
  
  <pre><code>cout &lt;&lt; "would you like to continue?" &lt;&lt; endl;
  cout &lt;&lt; "\nYES or NO" &lt;&lt; endl;
  int input =0;
  cin &gt;&gt; input;
  string Yes = "YES";
  string No = "NO";
  
  if (input == no)
  {
      cout &lt;&lt; "testone" &lt;&lt; endl;
  }
  if (input == yes)
  {
      cout &lt;&lt; "test two" &lt;&lt; endl;
           //the rest of the program goes here i guess?
  }
  else
  {
      cout &lt;&lt;  "you entered the wrong thing, start again" &lt;&lt; endl;
                //maybe some type of loop structure to go back
  }
  </code></pre>
  
  <p>but I can't seem to get any variations of this to work, i could make the user type a 0 or 1 instead but that seems really stupid, i'd rather it be as natural as possible, users don't speak numbers do they?</p>
  
  <p>also i need to be able to simply add more words, for example "no NO No noo no n" all would have to mean no</p>
  
  <p>hopefully that makes some sense</p>
  
  <p>also i would love to make this using a window but i've only learned basic c++ so far not even that and i cant find any good resources online about basic windows programming.</p>