im having this problem
when i try to add
m + 1 = k;
it says this-
*lvalue required as left operand of assignment* in my compiler, please help.
dont mind the unfinished code.
#include <iostream>
using namespace std;
int main()
{
double b,
m,
k;
string x;
b = 0.0;
cout << " GPA calculator " << endl;
cout << " Is your gpa weighted? " << endl;
cin >> x;
while(x == "yes")
{
cout << " Enter point: " << endl;
cin >> m;
m + 1 = k;
b += k;
cout << " Is your gpa weighted? " << endl;
cin >> x;
}
cout << b;
}