Delete '字符分类统计.c'

master
pwjku6f2y 3 years ago
parent 66564b4169
commit e79d93a701

@ -1,27 +0,0 @@
#include<stdio.h>
void Stringcount(char s[]) //<2F><><EFBFBD><EFBFBD><E5BAAF>
{
int le1=0,le2=0,di=0,sp=0,ot=0; //<2F><><EFBFBD><EFBFBD><EFBFBD>Сд<D0A1><D0B4>ĸ<EFBFBD><C4B8><EFBFBD><EFBFBD><EFBFBD>֡<EFBFBD><D6A1>ո<EFBFBD><D5B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ַ<EFBFBD><D6B7>ĸ<EFBFBD><C4B8><EFBFBD>
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); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
}
int main()
{
char a[10];
gets(a); //<2F><><EFBFBD><EFBFBD><EFBFBD>ַ<EFBFBD><D6B7><EFBFBD>
Stringcount(a); //<2F><><EFBFBD>ú<EFBFBD><C3BA><EFBFBD>
return 0;
}
Loading…
Cancel
Save