int main() //主函数
{char s[100]; //用于存放字符串的数组
int l,e,n,t; //l是总长,e字母,n数字,t其它
l=e=n=t=0; //初始化
gets(s); //输入字符
while(s[l]) l++; //测出字符串长度
for(l--;l>=0;l--) //逐个检测字符统计
if((s[l]>='a'&&s[l]<='z')||(s[l]>='A'&&s[l]<='Z')) e++;
else if(s[l]>='0'&&s[l]<='9') n++;
else t++;
printf("英文字母%d个,数字%d个,其他%d个。\n",e,n,t); //显示结果
system("PAUSE"); //暂停
return 0;} //结束