求指教。。字符区别函数
#include<stdio.h>#include<ctype.h>
int main()
{
int a, b, c;
a = b = c = 0;
char ch;
while (ch = getchar() != '#')
{
if (iswgraph(ch))
a += 1;
if (isblank(ch))
b += 1;
if ((ch != ' ')&& (ch != '\n'))
c += 1;
continue;
}
printf("空白符为:%d\n换行符为:%d\n其他字符为:%d", a, b, c);
return 0;
}为什么出来是这样的