#include
main()
{
int n;
n=0;
int c;
while((c=getchar() )!= EOF)
{
if(c=='\n')
{
++n;
}
}
printf("%d",n);
}
使用DEV C++编译通过,但是输入之后无任何输出。
#include
main()
{
int n;
n=0;
int c;
while((c=getchar() )!= EOF)
{
if(c=='\n')
{
++n;
}
}
printf("%d",n);
}
使用DEV C++编译通过,但是输入之后无任何输出。