down

Frans van Otten fransvo at htsa
Tue Dec 13 04:36:37 AEST 1988


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



More information about the Comp.lang.c mailing list