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).
#include <iostream>
using namespace std;
int main()
{
    char oprtr;
    float value, total = 0.0;
    cin >> oprtr >> value;
    while (oprtr != "q")
    {
        if (oprtr == "+")
            total += value;
        else if (oprtr == "-")
            total -= value;
    }
}
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"
 
     
     
     
    