How do I fix this error message in C++? (The message reports that there is an illegal operand)?

in the event that ((Month == 1 Thirty day period == 4) && (leapyear == 1))
Total=Total-1;

(This is usually 1 section regarding my personal system.WHEN I accurately described every one of the issues about the best belonging to the software.As well as declaration “Total=Total-1” seemed to be tabbed towards the appropriate after i attempted to be able to compile)

You pared lower the actual code a whole lot that it can be not possible to view just what exactly else might be drastically wrong.Because it is, the actual rule seems fine, however simply saying “I correctly defined every one of the variables” isn’t going to demonstrate make were being almost all accurately outlined.Exactly what sorts will be 30 days as well as leapyear

About all I can recommend is usually a few much more parentheses to make certain owner priority seriously isn’t getting a odd convert.

in the event that (( (Month == 1) (Month == 4)) && (leapyear == 1))

Best of luck.

However, frequently any syntax miscalculation might be described about the collection IMMEDIATELY AFTER the one which really features the challenge.This really is one more reason not to over-edit if placing code pertaining to evaluation.

That distinct rule is properly excellent.The matter has to be in most code which you didn’t demonstrate people.As an example, when the line previous to ?t had been missing the semi-colon when they get home, that could be described being a problem on this collection.

Did anyone offer overall an worth.

Leave a Reply