This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: Programming Assignment #6 Submit electronically - due Thursday, December 7th , at 10:00 am Checklist to me after class or to class mailbox in the front office on December 7th. No hardcopy. This assignment will help you become more familiar with using the STL containers and especially the algorithms. You will also get some practice implementing function objects. You are given an interface to a class called Worder, which is simply an object that represents all of the words of a text file. Once youve acquired all of the text from the file, there are several methods that will manipulate the words. Here is the list of the public methods to implement: Method Description bool Load( const std::string& filename); Reads words from a text file into the object. (Provided) void Print( bool oneline = true ) const; Prints the words to standard out. (Provided) unsigned CharCount( void ) const; Returns the count of characters in all the words. StringList WordsOfLength( unsigned length) const; Returns a list of words having the specified length, sorted alphabetically. StringList FindDuplicates( void ) const; Returns a list of duplicate words, sorted alphabetically. unsigned StartsWith( const std::string& prefix) const; Returns the count of words that start with prefix....
View Full Document
This lab report was uploaded on 04/18/2008 for the course CS 225 taught by Professor Volper during the Fall '06 term at DigiPen Institute of Technology.
- Fall '06