void transform_letter(string str){
char* head=&str[0],*p=&str[0]; //head指针指向str第一个字符,p指针相当于iterator
string num,letter,temp; //num存储字符串数字部分,letter存储字符串字母部分
if((*head)>47&&(*head)<58) //处理第一个字符,如果第一个字符为数字的情况 { if((*p)>47&&(*p)<58) //字符串数字部分存储到num中 { num+=(*p); p++; } else //不是数字的字符存储到letter中
{ letter+=(*p); p++; } }
else //如果字符串第一个字符是字母的话
{ *head-=32; }
string* pt=str; //指针指向需要处理的字符串
temp+=num;
temp+='_'; //将数字与字母部分之间加上 '_',并赋值给temp;
temp+=letter;
*pt=temp; //将字符串替换.}