看看这个c程序怎么结束啊,我是菜鸟啊啊啊
#include<stdio.h>main(){intc,nl;nl=0;while((c=getchar())!=EOF)if(c=='\n')++nl;printf(...
#include<stdio.h>
main()
{
int c,nl;
nl = 0;
while((c = getchar()) != EOF)
if (c == '\n')
++nl;
printf("%d\n",nl);
} 展开
main()
{
int c,nl;
nl = 0;
while((c = getchar()) != EOF)
if (c == '\n')
++nl;
printf("%d\n",nl);
} 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询