字符分类题
#include<stdio.h>
int main(){
char a[81],a1[81],a2[81],a3[81];
gets(a);
int j=0,k=0,m=0;
for(int i=0;a[i]!=0;i++){
if('a'<=a[i]&&a[i]<='z'){
a1[j++]=a[i];
}
else if('A'<=a[i]&&a[i]<='Z'){
a1[j++]=a[i];
}
else if('0'<=a[i]&&a[i]<='9'){
a2[k++]=a[i];
}
else...
登录后发布评论
暂无评论,来抢沙发