Refer to assignment for description of problem.
Solution: Here are several solutions (all fairly similar):
(same as first solution but with a slightly different method of
building the array of pointers).
(similar to previous solutions but combining the previously separate
steps of reading in the data and building the array of pointers).
(For some reason it had never occurred to do this,
but a student turned in code that works this way,
and -- I rather like it!)