Datei: p3-7.c
1 /* 2 * p3-7.c 3 * Beispielprogramm 7, Abschnitt 3 4 * Programm zum Zaehlen von Eingabezeichen 5 */ 6 7 #include <stdio.h> 8 9 void main(void) 10 { 11 long nc; 12 13 nc = 0; 14 while (getchar() != EOF) 15 ++nc; 16 printf("%ld\n", nc); 17 18 } /* main() */
Erzeugt von c2html 1.01 |