From e79d93a70116f7413d4f396007ea8ccea05e9658 Mon Sep 17 00:00:00 2001 From: pwjku6f2y <1915106350@qq.com> Date: Tue, 15 Feb 2022 14:03:38 +0800 Subject: [PATCH] =?UTF-8?q?Delete=20'=E5=AD=97=E7=AC=A6=E5=88=86=E7=B1=BB?= =?UTF-8?q?=E7=BB=9F=E8=AE=A1.c'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 字符分类统计.c | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 字符分类统计.c diff --git a/字符分类统计.c b/字符分类统计.c deleted file mode 100644 index 66e81c4..0000000 --- a/字符分类统计.c +++ /dev/null @@ -1,27 +0,0 @@ -#include -void Stringcount(char s[]) //���庯�� -{ - int le1=0,le2=0,di=0,sp=0,ot=0; //�����Сд��ĸ�����֡��ո�������ַ��ĸ��� - int i; - for(i=0;s[i] != '\0';i++) - { - if(s[i] >='A' && s[i] <='Z') - le1++; - else if(s[i] >= 'a' && s[i] <= 'z') - le2++; - else if(s[i] >= '0' && s[i] <= '9') - di++; - else if(s[i]==' ') - sp++; - else - ot++; - } - printf("%d %d %d %d %d",le1,le2,di,sp,ot); //������� -} -int main() -{ - char a[10]; - gets(a); //�����ַ��� - Stringcount(a); //���ú��� - return 0; - }