Example programs from class will go here.

March 6, 2009

Sum of squares of the integers, recursive: sumSquaresRecursive.m

March 9, 2009

Condensed diary file, with extensive comments to explain the functions step by step: 3-9_diary.txt
Note: It's probably easiest if you copy this file to your local directory. use the "cd" command to go to the directory you want to copy the file to and type the following (Note: you don't type the dollar sign, that is the symbol for the prompt):
$ cp /www/htdocs/CIS/106/cavazos/09S/examples/3-9_diary.txt .
(You should know what the above command is doing. You will be tested on that on the midterm.)

March 11, 2009

Condensed diary file, with extensive comments to explain the functions step by step, and example calls of the function: 3-11-2009_diary.txt This file is also available on strauss at /www/htdocs/CIS/106/cavazos/09S/examples/3-11-2009_diary.txt

March 13, 2009

Matrix traversal with boolean flag to break out of while loops: changeOnlyOne8to9.m This file is also available on strauss at /www/htdocs/CIS/106/cavazos/09S/examp\ les/changeOnlyOne8to9.m Diary example: 3-13-2009_diary.txt This file is also available on strauss at /www/htdocs/CIS/106/cavazos/09S/examples/3-13-2009_diary.txt (Notice the pattern?)

May 15, 2009

  • strcmpiDemo.m
  • writeToFileDemo.m
  • fileInput.cc
  • fileOutput.cc
  • readLineByLine.m
  • can all be copied from /www/htdocs/CIS/106/cavazos/09S/examples/