Mapping Words to Line Numbers in Text Files in STL / C++

Following on from the previous post, this example shows an example of how to use an STL multimap to track the line number(s) associated with each word in a text file. This program essentially reads in text line-by-line, while stripping out all occurrences of punctuation and other non-alphanumeric charcters. Each pair is inserted into the …

Continue reading ‘Mapping Words to Line Numbers in Text Files in STL / C++’ »