title: C++ I can't compare char variable to values
body: <p>Have to do this for the first cs course I'm taking. It's a basic calculator that takes an operator and a value and calculates the total (total beginning at 0).</p>
  
  <pre><code>#include &lt;iostream&gt;
  
  using namespace std;
  
  int main()
  {
      char oprtr;
      float value, total = 0.0;
  
      cin &gt;&gt; oprtr &gt;&gt; value;
  
      while (oprtr != "q")
      {
          if (oprtr == "+")
              total += value;
          else if (oprtr == "-")
              total -= value;
      }
  }
  </code></pre>
  
  <p>It's not finished but already having issues with it. It gives errors saying something along the lines of "prohibits comparing char values to int values"</p>