int ch, count = 0;
while((ch = getchar()) != EOF)
if(ch == '/n')
++count;
printf("%d/n", count);
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/266630.html
int ch, count = 0;
while((ch = getchar()) != EOF)
if(ch == '/n')
++count;
printf("%d/n", count);
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/266630.html