CIS 181 Intro to Comp Sci
Class 9, March 8, 2005


UNIX TIP OF THE DAY:

More in tshell -- earlier you learned to use <ctrl>-p to get the previous unix command on the command line (and to cycle through that list). You can also edit the command line using regular emacs commands. This is useful if you have just typed a long command that is ALMOST what you want. Commands I use a lot: <ctrl>-a -- move to beginning of line, <ctrl>-f -- move forward 1 character, <ctrl>-d -- delete a character. Remember, you can always add characters to the middle of the line too!

Just hit return when your changes are done and the new command will be executed.


ANOTHER UNIX TIP OF THE DAY:

The cd command is used to change directories. Notice that
cd ..
will move you up one directory. Also
cd
(with no arguments) should bring you back to your "home" directory.
cd ~username
will put you in username's top-level directory.


ASSIGNMENT:

Reading: D&D, Chapters 1-4.5

Exercises: Prepare for Exam!


TODAY'S TOPICS
 
  1. Questions on the exam.

  2. An old exam available in $CLASSHOME/exams/old-test1.ps. A PDF version of the same file can be found at old-test1.pdf. If you do not already have it, you may download Adobe Acrobat Reader to read pdf files. Here is the link to the page where you can get the reader: Adobe Acrobat Reader . Some programming solutions (to problems 4 and 5 on the exam) can be found in the $CLASSHOME/exams/old-test1-solutions directory.
     
  3. Finish up material from last class.
     
  4. Sorting Arrays -- bubble sort (see the file $CLASSHOME/deitel-files/examples/ch04/fig4_16.cpp) and (recursive) selection sort (see the file $CLASSHOME/examples/selection-sort.cc)

  5.