(Latest Revision: 10/01/2000)
Week 05 Notes for CS 2500 -- Fall 2000
Monday, October 02
- Take Roll.
- Announcements
- I finished grading program #1. Check your
e-mail for results. Also look at the summary
on line to see all the class members' scores.
- A lot of the students turned in a level
one program on the first due date for
program #1, instead of the level two
program that I assigned. Let's take a quick
look at the examples to make sure we
understand the difference.
- Check out what the readings are about this
week.
- No class next Monday (observing Columbus Day)
- Quiz and program due date next week.
- Most students did not test their program #1
adequately on the scripts. Look at the example
script in this directory for a look at "the right
way."
- Another important thing to notice about the sample
test script: the person making the script cats each
input file before running the program on that input.
- The compiler command option for naming the
executable file:
(g++ -o decode decode.cpp)
- Discuss compiling/debugging with jove
- How to execute the compiler "inside" jove:
(C-u, C-x, C-e)
- How to break out of jove to a sub-shell whilst
"saving your place": (M-s)
- Testing the program while in the sub-shell.
- How to break out of the sub-shell and return
to "your place" in jove: (exit)
- Point out locations in "General Info" section of
web space where there is information on compiling,
setting up www browsing, and other things ...
Wednesday, October 04
- Take Roll.
- Announcement(s)
- Discuss virtues of abstract data typing and modular code.
- Easier to design correctly
- Easier to change implementations
- protects integrity of data from users
- Easier to re-use code
- Look at the
data structures talk
- We can talk about how data structures are built up
with arrays, structs, arrays of structs, structs
containing arrays, etc.
Friday, October 06
- Take Roll.
- Announcements
- Discuss an example data structure: a version of the
listClass (an array-of-structs implementation).