#include <stdio.h> /*统计输入的行数*/ void main() { long nc; for (nc = 0; getchar() != EOF; ++nc) printf("count is %1d\n", nc); }