如:“ASJNA amdkk” “dkkdkk ajj" while(cin>>a){ for(int i=0;i<a.size();i++){ if(!isalpha(a[i])) a[i]=''; } }