Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once
- #include <string>
- #include <vector>
- using namespace std;
- class Dictionary
- {
- public:
- Dictionary(const char *filename);
- bool search(string word);
- void addword(string newword);
- void spellchecker(string filename);
- ~Dictionary();
- private:
- vector <string> words;
- bool hasWordBeenAdded;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement