Help finish c++ Concordance Class using MultiMap

Pågår Lagt ut 5 år siden Betales ved levering
Pågår Betales ved levering

Need this to be done within 12 hours! Help finish the last four functions in my header file that I will provide.

Objective

You are given a partial implementation of a concordance class. It contains the class declaration, the minimum and maximum length of words to analyze (e.g., from 4 letter words to 12 letter words), a multimap (std::multimap<std::string, size_t, StringLenCmp>), and a vector (std::vector<size_t>). The StringLenCmp class is provided. The vector counts how many unique words of each length occurred (it doesn’t count the number of times that word occurred). The Comparator class only defines operator(), sometimes called the function call operator. As you can see from the code, its only job is to tell the multimap to sort the entries first by word length, then alphabetically. Nothing to it!

Your job is to complete the concordance class (concordance.h), so that it correctly calculates the number of words in three separate pieces of text, all from the book: Harry Potter and the Sorceror’s Stone. The first piece of text is the first paragraph from the book. The second piece is the first page (and a bit more to finish the paragraph). The last piece is the entire first chapter from the book.

Source Code Files

You are given “skeleton” code files with declarations that may be incomplete and without any implementation. Implement the code and ensure that all the tests in [login to view URL] pass successfully.

concordance.h: This is to be completed

Note: the functions to read from a file and split a line into words is already given to you. You need to implement the remaining 4 public member functions.

Algoritme C-programmering C# Programmering C++ Programmering Java

Prosjekt-ID: #18266032

Om prosjektet

3 bud Eksternt prosjekt Aktiv 5 år siden

3 frilansere byr i gjennomsnitt $37 for denne jobben

hbxfnzwpf

I am very proficient in c and c++. I have 16 years c++ developing experience now, and have worked for more than 7 years. My work is online game developing, and mainly focus on server side, using c++ under Linux environ Mer

$50 USD på 1 dag
(168 Omtaler)
7.1