哪儿错了
统计个类型的字符个数#include<stdio.h>
#include<ctype.h>
void main()
{
char str[3][80];
int i,j,a=0,b=0,c=0,d=0,e=0;
for(i=0;i<3;i++)
gets(str[i]);
for(i=0,j=0;i<3;i++)
{
if(isdigit(str[i][j])==1) a++;
if(islower(str[i][j])==1) b++;
if(isupper(str[i][j])==1) c++;
if(ispunct(str[i][j])==1) d++;
if(str[i][j]==' ') e++;
if(j<80)
j++;}
printf("ying wen da xie zi mu ge shu wei %d.\n",c);
printf("xiao xie zi mu ge shu wei %d.\n",b);
printf("shu zi ge shu wei %d.\n",a);
printf("kong ge ge shu wei %d.\n",e);
printf("qi ta zi fu ge shu wei%d.\n",d);
}