CMPT 212 Assignment 1 corrections

David Simpson (simpson@cs.sfu.ca)
Mon, 22 Sep 1997 14:17:59 -0700 (PDT)


 Here is a correction and some clarifications about CMPT 212 Assignment 1:

  1.  There is an error in the description of function "atEnd" in 
      plist.h.  I have mixed up the "true" and "false".  Here is
      the correct version:
	 //  ...                             If this function returns
	 //  false, then a call to getNext() will return a person.  If this
	 //  function returns true, then a call to getNext() will not
	 //  return a person.
      I will make these corrections in the web page file and in the
      file in the Assignment Lab.

  2.  If you are compiling using a compiler that has the "bool" type
      already defined (such as Borland C++ 5.0), then you don't need
      the "bool.h" file to define the "bool" type.  But since the
      "plist.h" header file includes "bool.h", just make a file "bool.h"
      with nothing in it.  This will make the preprocessor happy when it
      tries to include "bool.h".

  3.  In the function "addToEnd" in "plist.h" the parameter is passed
      by reference for efficiency, not because the function will change
      the parameter.  I should have made it a "const", but it's too
      late now.

  - Dave Simpson
    CMPT 212 instructor