为什么会有error C2181: illegal else without matching if?
#include<stdio.h>int main()
{
int a=0,b=0,d=0;
char c;
while((c=getchar())!='#')
{printf("%c",c);
if(c>='0'&&c<='9')
a=a+1;
else if(c>='a'&&c<=''z'||c>='A'&&c<='Z')
b=b+1;
else
d=d+1;
}
printf("字母数量为%d",a);
printf("数字数量为%d",b);
printf("字符数量为%d",d);
return 0;
}