Loading a english dictionary in C++

i want to create a game in c++ which uses the english dictionary. Any idea as to how i can import it into my program. Is there a header file or something.?

Thanks for your help..!!
closed account (10oTURfi)
Umm...
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <fstream>
#include <string>
#include <vector>
int main()
{
    std::vector<std::string> Dictionary;
    std::ifstream File("Dictionary.txt");
    std::string Word;
    while(File >> Word)
    {
         Dictionary.push_back(Word);
    }
}
Last edited on
Topic archived. No new replies allowed.