LAB 5 (in two PARTS) ========================= PART I - due MIDNIGHT (tiglon time) Monday, April 22nd -------------------------------------------------------- a) do #2 from page 267 (ch.5) specifically: - call your function "dups" (no quotes) - your function returns void - your function takes in ONE POINTER PARAMETER, which points to the head of a list of 'item_types' (see below) BASIC FUNCTIONALITY: -------------------- pre- pointer argument received points to head of a linked list of elements of type "item_type" post - duplicate items have been removed from the list (and released from the heap) and pointer argument still points to head of list. - item_type is defined elsewhere (not your problem, other than for testing) - assume '==' operator exists (defined elsewhere), for comparing 'data' field of item-type items - assume 'set_link' function exists (as in lltoolkit) 'link' function exists (as in lltoolkit) 'data' function exists (as in lltoolkit) b) write a COPY CONSTRUCTOR, == operator, = operator for the 'node' class from the text. [note: this code is pretty trivial and just for practice] you MAY place both (a) and (b) in one file, even though they are not integrated in your assignment. just be certain you do whatever is necessary to allow them to compile. BOTH (a) and (b) should be independantly tested, BY YOU. (hint, use and modify the existing node and bag code from ch.5 code-set) Do NOT submit any code or files, other than those requested in (a) and (b) above. c) read through the section on STRING CLASS implementation, from chapter 4.5, pg.183 ******* IMPORTANT ***************** Your turnin directory, subdirectories, and files MUST be set appropiately. Pay CLOSE ATTENTION to 1) WHO has GROUP ownership of each? (s = students; csci15b=lynna&renner) 2) WHAT access permissions are set for Lynna&Renner, versus other 'students' I.E. - your turnin directory MUST NOT be accessible in anyway to other students .... => 770 (you should be owner, 'csci15b' should be group) your LAB5 subdirectory and files MUST be accessible to renner .... => 7?7 (? is 'i-don't-care) ... at this level, renner is OTHER! and all other students have already been locked out, at level above. **** watch for Part II ****