J
Jason Kid
Hi,
Please tell me what's wrong with the following code.
private bool CheckIt( int iArg, bool fArg)
{
bool fIsGood = false;
bool fIsRight;
for (int i = 20; i < 30; i++ )
{
if (i == iArg)
fIsGood = true;
}
if (fArg == true)
fIsRight = true;
else
fIsRight = false;
if (fIsGood == true && fIsRight == true)
return true;
else
return false;
}
Please tell me what's wrong with the following code.
private bool CheckIt( int iArg, bool fArg)
{
bool fIsGood = false;
bool fIsRight;
for (int i = 20; i < 30; i++ )
{
if (i == iArg)
fIsGood = true;
}
if (fArg == true)
fIsRight = true;
else
fIsRight = false;
if (fIsGood == true && fIsRight == true)
return true;
else
return false;
}