帮忙看看这个程序的问题吧,运行不了啊
#include<stdio.h>int main()
{
int c=0;
int line=0;
int tab=0;
int space=0;
while((c=getchar())!=EOF)//input Ctrl+D is EOF
{
if(c=='\n')
line++;
else if(c==' ')
space++;
else if(c==' ')
tab++;
}
printf("the number of line is %3d;\nthe number of space is %3d;\nthe number of tab is %3d;\n",line,space,tab);
return 0;
}