Advertisement
Guest User

Untitled

a guest
Jan 20th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.39 KB | None | 0 0
  1. void Word::obtainCountedWords(std::vector<std::pair<std::string, std::string>> container)
  2. {
  3.     for (auto it : container)
  4.     {
  5.         for (auto it2 : countedContainer)
  6.         {
  7.             if (std::get<0>(it2) == it.first)
  8.             {
  9.                 std::get<2>(it2)++;
  10.                 continue;
  11.             }
  12.             else
  13.             {
  14.                 //countedContainer.push_back(make_tuple(it.first, it.second, 0));
  15.             }
  16.             if(it2. == countedContainer.end() - 1)
  17.         }
  18.     }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement