JustWannaHugU
C++编写,望采纳#include <iostream>
#include <cstring>
using namespace std;
int main()
{
char arr[101];
cout<<"请输入字符串:\n"<<endl;
cin>>arr;
for(int i=0; i<strlen(arr); i++)
{
if((arr[i]==' ')||(arr[i]>='0'&&arr[i]<='9'))
continue;
else
cout<<arr[i];
}
cout<<endl;
return 0;
}