Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Dictionary operator-(const Dictionary& temp1 , const Dictionary& temp2)
- {
- Dictionary temp;
- std::map<std::string,std::string>::const_iterator it;
- std::map<std::string,std::string>::const_iterator it2;
- for(it=temp1.WordCard.begin() ; it!=temp1.WordCard.end() ; it++)
- {
- for(it2 = temp2.WordCard.begin() ; it2!=temp2.WordCard.end() ; it2++)
- {
- if(it->second!=it2->second)
- {
- temp.WordCard[it->first] = it->second;
- }
- }
- }
- temp.DicSize = temp.WordCard.size();
- return temp;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement