C语言题目 有一篇文章,共有3行文字,每行有个80字符.要求分别统计出

有一篇文章,共有3行文字,每行有个80字符.要求分别统计出
其中英文大写字母、小写字母、空格以及其它字符的个数.
#include "stdio.h"
#include "string.h"
main()
{ char str[3][100];
int i,j,a=0,b=0,c=0,d=0,e=0;
for(i=0;i<=2;i++)
gets(str[i]);
for(i=0;i<=2;i++)
for (j=0;j<80;j++)
{ if (str[i][j]>=65&&str[i][j]<=90)
a++;
else if (str[i][j]>=97&&str[i][j]<=122)
b++;
else if (str[i][j]>=48&&str[i][j]<=57)
c++;
else if (str[i][j]=32)

d++;
else
e++;
}
printf("daxie %d xiaoxie %d shuzi%d kongge %d qita %d",a,b,c,d,e);
getch();
}
麻烦帮我看看问题出在那?编译下来abc的值对的 剩余的数值全进了d了 e始终为0
谢谢

else if (str[i][j]=32)
===》》》

else if (str[i][j]==32)
温馨提示:答案为网友推荐,仅供参考