|
|
1.1 ! root 1: #include "list.h" ! 2: ! 3: ostream& ! 4: operator<<(ostream& oo, list(voidP)& ll) ! 5: { ! 6: oo<<"("; ! 7: if ( ll.length() ) { ! 8: listiterator(voidP) it(ll); ! 9: voidP t; ! 10: it.nextX(t); ! 11: oo<< (int)t; ! 12: while (it.nextX(t)) ! 13: oo << " " << (int)t; ! 14: } else ! 15: oo<<"EMPTYLIST"; ! 16: oo<<")"; ! 17: return oo; ! 18: } ! 19: /* ! 20: ZOTZlistoutimplement(voidP) ! 21: */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.