CS 241: C++ Provided Code for Lab 2


The following files are being provided. This zip file contains all of the files listed below.

You also need to get the provided test data

o makefile --- this is the makefile for compiling and linking this program and the example timing program. If you save it from here, you'll have to put back the tabs. So my advice is for you to save the zip file with everything and then unzip it.

o StringDictionary.cc --- This is the class you'll need to modify. The interfaces for each public method is described.

o StringDictionary.h --- The StringDictionary header file. The public methods and provided private methods (including a method that returns if two keys are equal) are here, but you'll need to modify this to include the instance variables and any private methods that you want to add.

o lab2.cc --- The driver, that performs the string matching using your provided String Dictionary.

o Record.h --- The Record class to hold the associated data. All of the code is in the header file. Nothing is used other than just the constructor.

o vector.h --- The Vector class header file which actually has all of the code. This is used by Lab2.cc -- you don't need to even look at it.

o SeqReader.cc --- The class that reads the DNA Sequences. This is used by Lab2.cc -- you don't need to even look at it.

o SeqReader.h --- The SeqReader header file.


Return to the CS 241 Home Page