title: C++ comparing a string with an array of strings
body: <p>if I have:</p>
  
  <pre><code>const string food[] = {"Burgers", "3", "Fries", "Milkshake"}
  string word;
  cin &gt;&gt; word;
  </code></pre>
  
  <p>How can I compare word with the correct food? or rather, if the user inputs "Fries", how can I compare that with the string array?</p>