10.8输入一行文字,找出其中大写字母、小写字母、空格、数字及其他字符各有多少?
#include <stdio.h> int main(){ char * p,str[50]; int upper=0, lower=0,digit=0,space=0,other=0; p=str; printf("请输入一行字符,以回车键结束. "); gets(str); while((*p) != '