error: no match for 'operator>' in 'ba_sal > 100000'|
Whenever I build the code, I get an error saying that the operator isn't matched. Please help?
1 2 3 4 5 6 7
|
case '5' : std::cout<<"CHIEF MANAGER";
std::cout<<"\n Enter Pay:";
std::cin>>ba_sal;
if(ba_sal>100000||ba_sal<80000)
{
std::cout<<"CHECK SALARY";
}
|
1 2
|
// std::string ba_sal ;
double ba_sal ;
|
yes! that solved it.. thank you :D
Topic archived. No new replies allowed.