#include<iostream>
#include<string>
using namespace std;
//查找字符串中的数字、字母
int main(int argc,char **argv)
{
string numerics("0123456789");
string name = ("ab2c3d7R4E6");
string::size_type pos = 0;
while((pos = name.find_first_of(numerics,pos))!=string::npos)
{
cout<<name[pos];
++pos;
}
pos = 0;
while((pos = name.find_first_not_of(numerics,pos))!=string::npos)
{
cout<<name[pos];
++pos;
}
}