bool IsEven(int i)
{
if (i < 0)
i *= -1;
while(i > 0)
i -= 2;
if (i == -1)
return false;
else
return true;
}
An is even function that is technically correct, but a really bad approach.
if (type == cSTR_Integer) {
type = cSTR_Integer;
} else if (ctype == cSTR_String) {
type = cSTR_String;
}
const int TWENTY_EIGHT = 28;