2000 Mar 19
The purposes of homework 5 included:
The test programs are bundled together in a shar file. To unpack the shar file, copy to your favorite UNIX/Linux account and type
Files named like t-assignment.cc test a particular aspect of the code. Compile this with either your naive or powers-of-two implementation, assumed to be in a file named dynamicArray.h. Running the executable with a command-line argument of 34 (or 18000 for t-stress.cc) should yield output like n-t-assignment.expected-out (for the naïve implementation) or p-t-assignment.expected-out (for the powers-of-two implementation). Also, be sure to check for memory leaks using mtrace, as described in the homework.