CS 420/222   Fall 1998,  Instructor:  Jeffrey Horn 

HOMEWORK 3:  POINTERS
 
Handed out/Assigned: Thursday, October 8, 1998
Due: Friday, October 16, 1998
OVERALL:  Modify your the code for HW2, Binary Search, so that only pointers to individuals are used.  For example, the array of individuals in SortedArray should become an array of pointers to individuals instead.  Also, all methods of SortedArray and Individual classes should take pointers to individuals as arguments (as appropriate!) and never an individual.  The motivation for these changes is that Individual is becoming a much more complex and larger class, thus we wish to avoid making copies of an individual at any point.

WHAT TO HAND IN:  Hand-in the code, both hardcopy and sending me the ascii text file by email to jhorn@nmu.edu.  And DO comment!  (I always find it easier to go back and add comments later, but whatever works for you.  See my style of commenting.  At the very least, comment modules such as classes, methods, and functions, that you write or modify.)

PURPOSE:  Learn the use of pointers in C++!

 SPECIFICS:  Same as in HW2.

THE CODE:  Same as in HW2.  (you can go directly to the files by clicking here)