#include #include #include #include using namespace std; void create_dict(/* COMPLETE */ dict, const string& dict_file_name) { cout << "Building dictionnary" << endl; ifstream in(dict_file_name.c_str()); string word; while(!in.eof()) { in >> word; // Insert word in the dictionary } in.close(); cout << "Dictionnary built" << endl; } void check_spell(const string& word, /* COMPLETE */ dict) { // COMPLETE } int main (void) { string dict_file_name = "holmes.txt"; /* COMPLETE */ dict; // call create_dict() list words; // push: spelling, speling, whree and where in the back list::iterator it; for (it = words.begin(); it != words.end(); it++) { // check if the current word is spelled correctly by calling check_spell } return 0; }