//checks for leap year
bool checkLeapYr(int year)
{
bool isLeap;
if ((year%4=0) && (year %100!=0) || (year%400=0)) //error here. Non-Ivalue assignment
{
isLeap=true;
return isLeap;
}
else
{
isLeap=false;
return isLeap;
}
}//end function check leap year
i have the above function to check if a year is a leap year. The if statement is giving me a compilation error message "non-lvalue in assignment". Can anyone help me with it please?
Thank you.