问题在哪?
#include <stdio.h>#include <ctype.h>
int main (void)
{
char ch;
int lc=0;
int uc=0;
int oc=0;
while ((ch=getchar())!='#');
{ if (islower(ch))
lc++;
else if (isupper(ch))
uc++;
else oc++;
}
printf ("lower=%d,upper=%d,other=%d \n",lc,uc,oc);
return 0;
}
为什么lower=0,upper=0,other=1?