Hi there! I'm new here so I hope I don't do anything wrong.
I've been frustrated over a little issue I encountered on my code, this is the issue:
warning: multi-character character constant [-Wmultichar]
This issue goes on all my three cases whenever I run the program, which yes, does run, but doesn't give me the proper results.
This is the code:
#include <iostream>
using namespace std;
int main()
{
int a,b,c, delta=0;
cout<<"insert the value of a : "<<endl;
cin>>a;
cout<<"insert the value of b: "<<endl;
cin>>b;
cout<<"insert the value of c: "<<endl;
cin>>c;
delta= b*b -4*a*c;
switch (delta){
case '>0': cout<<"the solutions are different "<<endl;break;
case '=0': cout<<"the solutions are equal "<<endl;break;
case '<0': cout<<"the solutions are impossible "<<endl;break;
}
system("pause");
}