1.输入一个字符串,统计大写字母、小写字母、空格、数字和其他字符的个数。(要求用字符数组)
#include <stdio.h> #define N 1000 int main() { char ch[N]; int i,num=0,bigletter=0,smallletter=0,space=0,other=0; printf("ÇëÊäÈë×Ö·û´®£º "); gets(ch); // puts(ch); for(i=0;ch[i]!='