scanf("%s", &a);n=strlen(a);for(i=0, j=0; iif(a[i]>='a' && a[i]<='z'){b[j++]=a[i];}}b[j]=0;printf("%s\r\n", b);
getchar()放入A然后循环A放入B即可