In article <gables.352 at umigw.miami.edu> slores%gables.span at umigw.miami.edu (Stanislaw L. Olejniczak) writes:
> while ( (c = getchar) != EOF)
> chcnt++ += (c == '\n');
Why is chcnt += 1 + (c == '\n') too complex for you ? Besides,
it won't work. Try getchar().
--
Frans van Otten
Algemene Hogeschool Amsterdam
Technische en Maritieme Faculteit
fransvo at htsa.uucp