C程序設計語言-1-統計行個數

#include <stdio.h> /* count lines in input */ main() {     int c, nl;     nl = 0;     while ((c = getchar()) != EOF)         if (c == '\n')             ++nl;     printf("%d\n", nl);      system("pause
相關文章
相關標籤/搜索