title: || not working in if else C++
body: <p>I'm building a simple menu that the user can select from. For some reason </p>
  
  <pre><code>else if (letterSelect == "C" || letterSelect = "c")
  </code></pre>
  
  <p>The || is coming up with an error. The other || work fine. The error is: no operator "||" matches these operand. operand types are; bool || std::string</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;cmath&gt;
  #include &lt;string&gt;
  using namespace std;
  
  int main()
  {
  
  
  cout &lt;&lt; "********* General Purpose Calculator Program ***************\n"
      &lt;&lt; "Please Select an Option by inputting its associated letter\n"
      &lt;&lt; "A)  Determine Highest of Three Numbers\n"
      &lt;&lt; "B) Reverse a Number\n"
      &lt;&lt; "C)Calculate Parking Garage Charges\n"
      &lt;&lt; "D) Exit\n";
  
  string letterSelect = " ";
  
  
  cin &gt;&gt; letterSelect;
  
  if (letterSelect == "A" || letterSelect == "a")
  
  {
  
      //call program listed for A;
  
  }
  
  else if (letterSelect == "B" || letterSelect == "b")
  
  {
  
      //call program listed for B;
  
  }
  
  else if (letterSelect == "C" || letterSelect = "c")
  
  {
  
      //call program listed for C;
  
  }
  
  else (letterSelect == "D" || letterSelect == "d");
  
  
      cout &lt;&lt; "Exiting...";
  
  
  }
  </code></pre>