5903 Intro Scientific Prog:
DDD Sample: Specification

  1. Experiment with the program sample in the following directory It is supposed to sort the command line input.  Try it on the input "sample 123 456 789 34561" comment in the read me file.
  2. Fix the problem with sample.c and recompile it.
  3. The makefile has the -g flag set in case you want to use the debugger.  We used the graphical ddd debugger in class.
  4. Explain in a readme file what was wrong with the code and how you fixed it.  Leave a comment in a suitable place in the source code for the original programmer.
Additions and changes are in red.