s.push_back(make_pair(temp,row));temp="";}}elseif(Text[i]=='\n'){if(temp!=""){words.push_back(make_pair(temp,row));words.push_back(make_pair("@@@",row));temp="";}else{words.push_back(make_pair("@@@",row));}row++;}else{temp+=Text[i];}}}voidPrint_Words()//打印单词和单词行数{for(vector<pair<string,int>>::iteratorit=words.begin();it!=words.end();it++){cout<<it->first<<''<<it->second<<endl;}cout<<"**********"<<endl;}voidMerge_Symbol()//合并一些运算符{for(vector<pair<string,int>>::iteratorit=words.begin();it!=words.end();it++){if(it->first=="<"){vector<pair<string,int>>::iteratorit2=it;it2++;if(it2->first=="="||it2->first==">"){it->first+=it2->first;words.erase(it2);}}elseif(it->first=="="||it->first==">"){vector<pair<string,int>>::iteratorit2=it;it2++;if(it2->first=="="){it->first+=it2->first;words.erase(it2);