CPS 108 C++ Code Critique: du

Fall 1998



You are to understand and ultimately critique the following program which attempts to replicate some of the functionality of the Unix command du , which stands for "disk usage". It is less flexible than the corresponding Unix command, but produces output that may be seen as "more user-friendly".  See the Unix man page on du for more information.

Analysis

You should analyze the code given and write a description no longer than one paragraph that describes its use and functionality.  Your description should be suitable for use in a user's manual or manual page; however, it should be in your own words --- i.e., you cannot just copy the current Unix man page.

Additionally, you should answer the following questions in as much detail as you can.

Critique

You should critique the code and design of the program. The program has some good qualities, but the design and code also have some problems. You should write a one paragraph to one page critique of the code and design.  Your critique should address at least the following issues: In addition to the questions above, your critique should include some general comments:
Comments?