#include <stdio.h> #include <string.h> int main() { char str1[100], str2[100]; int i, j; gets(str1); for (i = 0, j = 0; i < strlen(str1);) { if ((str1[i] >= 'a' && str1[i] <= 'z') || (str1[i] >= 'A' && str1[i] <= 'Z')) str2[j++] = str1[i++]; else i++; } puts(str2); return 0; }
by: 发表于:2018-05-25 16:04:18 顶(0) | 踩(0) 回复
??
回复评论