#include "stdio.h"#include "string.h"void main(){ char str[500]; int i; printf("请输入字符串:\n"); gets(str); for(i=0;i { if(str[i]==' '||(str[i]>='0'&&str[i]<='9')) continue; else printf("%c",str[i]); } printf("\n");}