i have a question about maps, im working on a spell check i have load dictionary which is going to be a set, and i have that correct, but for the map part im confused, so what i what to do for my spellcheck function to see if there any misspelling.
example.txt
My nam
output.txt
My name
so my function should go like this
i want to read in the file
i want to check the file if there any errors
if there is any errors i want to fix those error like in output.txt.txt
if there no errors i just want to print the file out
i dont know which std::map function to use
and im also using ostream and istream
|
std::map<std::string, std::string> example
| |
please need some type of advice or example