Advertisement
Guest User

Untitled

a guest
Aug 18th, 2017
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.32 KB | None | 0 0
  1. #pragma once
  2.  
  3. #include <string>
  4.  
  5. #include <vector>
  6.  
  7. using namespace std;
  8.  
  9. class Dictionary
  10. {
  11. public:
  12.     Dictionary(const char *filename);
  13.     bool search(string word);
  14.     void addword(string newword);
  15.     void spellchecker(string filename);
  16.     ~Dictionary();
  17.  
  18. private:
  19.     vector <string> words;
  20.     bool hasWordBeenAdded;
  21. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement