#include
void main()
{
int big=0,null=0,small=0,num=0;
char c=0;
clrscr();
printf("input something\n");
while(c!='\n')
{
c=getchar();
if (c<='Z'&&c>='A')
big+=1;
if (c<='z'&&c>='a')
small+=1;
if (c<='9'&&c>='0')
num+=1;
if (c==32)
null+=1;
else
other+=1;
}
printf("Big=%d,small=%d,number=%d,null=%d",big,small,num,null);
getch();
}
strcmp(char* src,char* dest,sizeof(ch));
统计一串字符用数组啊!