CS 241: C++ Provided Code for Lab 2



Here is a single file that contains all of the files described below. Just save it and then unzip it (use WinZip on the PCs, unzip in unix, and an standard unzip program on other platforms).

o c++-lab2-all.zip


The following files are being provided:
o makefile --- here is the beginning of the makefile for compiling and linking this program. I put "..." where I expect you to need to add something. Also, you'll need to add some lines.

NOTE: do not save these from the web since it will change the tabs to spaces and the tabs are very important. See using simple makefiles for more on this.

You can get a good copy of this makefile by uncompressing the provided file with everyting.

o stdinc.h The standard include file has been modified for file I/O

o inventory.cc This is the main program that will use the dictionary ADT

o data-record.h This is the header file for a DataRecord class

o data-record.cc This implements the methods to access the data

o hash.cc Here's the hash function you are to use.

o file-ex.cc This demonstrates the use of the provided read and write methods in DataRecord

o hash-test The test data for the portion besides load/save

o hash-test-part2 Additional test data for those doing load/save


Return to the CS 241 Home Page