统计单词数,怎么调试的时候无法结束输入?我用的是dev cpp
#include <stdio.h>
#define IN 1
#define OUT 0
main()
{
int c,state,nw;
state=OUT;
nw=0;
while((c=getchar())!=EOF){
if(c==' '||c=='\t'||c=='\n')
state=OUT;
else if(state==OUT)
{
state=IN;
++nw;
}
printf("the number of the words : %5d",nw);
}