BB> Yup. I did all that routinely, Herman, but 'for' loops require an
BB>int as control variable, don't they?
Bill,
No, for loops can use whatever you want. One often used method in linked
lists is traversing them:
list* l;
for (l = FirstListItem(); l = ListNext(l); IsEndOfList(l))
{
/* code */
}
HS> Since when? Most compilers accept non-standard code,
HS> so there's no use bitching about ansi-c rules, is
HS> there? Why? Because I really don't care. If it compiles
HS> and works efficiently it good enough for me.
Why do we concern ourselves with ANSI rules? So that when we post our
questions and problems, that we can understand each other. And so that when
we post our code, that others can use it.
---
---------------
* Origin: Tanktalus' Tower BBS (1:250/102)
|