Advertisement
perjespersson

.H

Apr 11th, 2019
276
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. #ifndef WORD_CONTAINER
  2. #define WORD_CONTAINER
  3. #include <iostream>
  4. #include <vector>
  5. #include <map>
  6.  
  7.  
  8. class Word_Container
  9. {
  10. public:
  11. Word_Container(std::string& file_name, std::string& argument, int number = 0);
  12. void Print();
  13.  
  14. private:
  15. std::string text_document;
  16. std::string argument;
  17. std::vector<std::string> words;
  18. unsigned longest_word_length;
  19. unsigned longest_number;
  20. int number;
  21.  
  22. bool Check_Word(std::string &ord);
  23. void Read_Words();
  24. void Make_Map(std::map<std::string, int> &final);
  25. };
  26.  
  27.  
  28. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement