Does this work?
Oct. 23rd, 2007 07:01 pm
for (pnode == pnodeFirst; pnode; pnode = pnode->pnodeNext)
{
int i;
if (pnode->k == kSource)
i = pnode->l;
else if (pnode->k == kDest)
pnode->l = i;
}
I know this variant works differently between the last two compilers I've used:
for (i=0; i<=2; i++)
{
int j=0;
PrintNumber(j);
j++;
}
K+R is no help, they don't seem to address this issue at all.