void main() { char str[256],*p; int a,b,c;
gets(str); p=str; a=b=c=0;
while ( *p ) {
if ( (*p)>='A' && (*p)<='Z' ) a++;
else if ( (*p)>='a' && (*p)<='z' ) a++;
else if ( (*p)>='0' && (*p)<='9' ) b++;
else c++;
p++;
}
printf("英文字母%d,数字%d,其他%d\n",a,b,c);
}