CS 241: C++ Provided Code for Lab 1


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++-lab1-all.zip


The following files are being provided:
o makefile --- this is the makefile for compiling and linking this program and the example timing program

o lab1.cc --- the portion of the driver provided is here

o closest-pair.cc --- This is where you'll put your implementation of the divide-and-conquer closest pair algorithm

o sort.cc --- this is called to do the sorting neededin preprocesing

o stdinc.h --- includes needed libraries and defines some const vars

o point.h --- header file for the Point class

o point.cc --- code for Point class

o Profile_Timer.h --- header file for the class used for timing

o Profile_Timer.cc --- code for the class used for timing


Return to the CS 241 Home Page