## Problem:

I need help with a calculator I created. It keeps giving me the error; "**ISO C++ forbids comparison between pointer and integer**" and "invalid conversion from `const char*' to `char'".

Here's the code:

```
#include <cstdlib>
#include <iostream>
using namespace std;
int main()
{
char operation; // operation
double first; //first number
double second; // second number
char operationd; // displays operation later on
double result; // sum/difference/product/quotient
cout << "Calc v2 "<< endl;
cout << "by Marvolo1300" << endl;
cout << " "<< endl;
cout<< " Choose your first number"<< endl;
cin >> first;
cout<< "You have chosen"<< first;
cout<< "Choose the operation";
cin >> operation;
if (operation=="+")
{
operationd= "Addition (+)";
}
if (operation =="-")
{
operationd= "Subtraction (-)";
}
if (operation=="*")
{
operationd= "Multiplication (*)";
}
if (operation=="/")
{
operationd= "Division (/)";
}
cout<< " You have chosen"<< operationd<< endl;
cout<< "Choose the second number"<<
cin >> second;
if (operationd=="+")
{
cout<< "The sum is"<< first + second<< endl;
}
if (operationd=="-")
{
cout << "The difference is" << first - second << endl;
}
if (operationd=="*")
{
cout<< "The product is" << first * second<< endl;
}
if (operationd=="/")
{
cout<< "The quotient is" << first / second<< endl;
cout << ""<< endl;
cout << ""<<endl;
}
cout<< "Press ENTER to exit";
cin.ignore(LONG_MAX,'\n');
cin.get();
return 0;
}
```

I am struggling with the code for a long time and couldn’t figure out the problem. Could you please help me out?

Thanks