a. Log in to your MathLAN workstation. (Of course, you've probably already done that if you're reading this laboratory.)
b. Create a directory for this lab. I'd suggest
c. Make copies of these files. (Cross your fingers that I did not make a mistake in transcription.)
d. Pull out your K&R.
e. Figure out how to put everything into an executable.
f. Review the code in the various files.
Do K&R 5.14 on p. 121. That problem reads
Modify the sort program to handle a
-rflag, which indicates sorting in reverse (decreasing) order. Be sure that
Do K&R 5.15 on p. 121. That problem reads
Add the option
-fto fold upper and lower case together, so that case distinctions are not made during sorting; for example,
Do K&R 5.16 on p. 121. That problem reads
-d(directory order) option, which makes comparisons only on letters, numbers, and blanks. Make sure that it works in conjunction with
Tuesday, 9 November 2010 [Samuel A. Rebelsky]
Monday, 18 April 2011 [Samuel A. Rebelsky]
I usually create these pages
on the fly, which means that I rarely
proofread them and they may contain bad grammar and incorrect details.
It also means that I tend to update them regularly (see the history for
more details). Feel free to contact me with any suggestions for changes.
This document was generated by
Siteweaver on Mon Apr 18 10:36:46 2011.
The source to the document was last modified on Mon Apr 18 10:36:43 2011.
This document may be found at
A PDF version of this document may be found at