Spell now behaves properly
This commit is contained in:
parent
42f69296f6
commit
abec11b35b
1 changed files with 6 additions and 5 deletions
|
@ -1,4 +1,5 @@
|
||||||
#include "dictionary.h"
|
#include "dictionary.h"
|
||||||
|
#include <algorithm>
|
||||||
#include <cctype>
|
#include <cctype>
|
||||||
#include <filesystem>
|
#include <filesystem>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
@ -31,11 +32,11 @@ int main() {
|
||||||
Dictionary dict;
|
Dictionary dict;
|
||||||
string word;
|
string word;
|
||||||
dict.slurp(std::filesystem::path("/usr/share/dict/words"));
|
dict.slurp(std::filesystem::path("/usr/share/dict/words"));
|
||||||
dict.spit(std::filesystem::path("words.txt"));
|
// dict.spit(std::filesystem::path("words.txt"));
|
||||||
|
|
||||||
// while (cin >> word) {
|
while (cin >> word) {
|
||||||
// transform(word.begin(), word.end(), word.begin(), ::tolower);
|
std::transform(word.begin(), word.end(), word.begin(), ::tolower);
|
||||||
// check_word(word, dict);
|
check_word(word, dict);
|
||||||
// }
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue