no, no I don't use if(true). That's useless, unless true is defined as a variable that changes value. Anyway, for example I have this piece of code:
Code:
for (j=0; j< vars.NumScan; j++)
{
k=0;
for( i=0; i< FAD.vectDL.size(); i++)
{
if ( strncmp(FAD.vectDL[i].Param, "ENDL", 4) != 0 && strncmp(FAD.vectDL[i].Param, "END", 3) != 0)
{
if(MakeWord(out, &FAD.vectDL[i],
mtxVicVals[j][k], TempWord) == 1)
{
//fprintf(out, "%08x ", TempWord);
AWords2d[j].push_back(TempWord);
}
k++;
}
}
//fprintf(out, "\n");
}
I only define what happens if a conditin is true, I don't define what to do if it's not.