13.04.2014, 21:12
Hi everyone
I get this message "warning 205: redundant code: constant expression is zero" with this piece of code when I compile, can be can you give me some help?
thx
I get this message "warning 205: redundant code: constant expression is zero" with this piece of code when I compile, can be can you give me some help?
thx
Код:
GetNumberOfPages()
{
if((300 >= 21) && (300 % 21) == 0)
{
return (300 / 21);
}
else
{
return (300 / 21) + 1;
}
}

