(Latest Revision: 03/02/2001)
Week 03 Notes for CS 1500, Section 001 -- Spring 2001
CS 1500, Section 001, Monday, February 26, 2001
- Lecture today in P-167 (new room)
- Look at upcoming schedule.
- Class starts at 11:15. I take roll at 11:25
- Announcement(s)
- I will be out of town on Wednesday. Class will do lab #02 in
P-288 Wednesday instead of Friday. Julie Gorman, the lab system
administrator, will supervise the class.
-
- Students can hand in printouts from lab #01 today, at beginning of
class.
- Take care of assigning new partners for people whose partners have not
been in class.
- Discussion of lab #2
- Be sure to study the online directions in advance and come to lab
prepared to do the steps with relative quickness and ease.
-
- Discussion of solo program #1
- Discussion of sample programs and the new programming concepts they
illustrate.
- use of cout stream (e.g. ex0201.cpp)
- Using expressions with << (e.g. ex0201.cpp)
- use of endl (my_example.cpp)
- using functions (my_example.cpp)
- int's versus float's
- declaring and naming variables (e.g. ex0201.cpp, ex0202.cpp,
ex0205.cpp)
- assignment statements, lvalues, rvalues (e.g. ex0201.cpp,
ex0205.cpp)
- separate and combined declaration-initialization (e.g.
ex0205.cpp)
- integer arithmetic -- including surprises about integer division
(e.g. ex0205.cpp)
- modulus operator % and unary - (e.g. ex0205.cpp)
- operator precedence (my_example.cpp)
- interactive programs (e.g. ex0220.cpp)
-
- Did I show you how to add yourself to the set of recipients of your
e-mail (so you could be more sure that the message arrives?) If not,
let's look at how to do that.
- Show example of reading e-mail on the Sun Ultra's.
- The compiler command option for naming the executable file:
(g++ -o
letters letters.cpp)
- Discuss compiling/debugging with jove
- How to execute the compiler "inside" jove: (C-u, C-x, C-e)
- C-x 1 "unsplits" the screen.
- How to break out of jove to a sub-shell whilst "saving your
place": (esc-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)
- If interested, you can read the
compileHelp document for more information about using JOVE for
compiling and debugging. This document is in the General_Info section
of the class web space.
CS 1500, Section 001, Wednesday, February 28, 2001
- Class starts at 11:15. Julie takes roll at 11:25
- Lab Day -- we meet in P-288 -- Do lab #02
- Announcement(s)
-
CS 1500, Section 001, Friday, March 02, 2001
- Class starts at 11:15. I take roll at 11:25
- Lecture Day -- we meet in P-167
- Announcement(s)
- Solo program #1 is now due Wednesday (I moved it back two days).
You must send the e-mail before midnight.
- Has everyone turned in printouts from lab #1?
- Today is the final day to turn in source and script for lab #2.
-
- How did things go in lab #2?
- Discussion of solo program #1
- Go over the assignment document
- Discuss the structure of functions that will be needed
- example: a program containing a function and a call -- page
35 of Shiflet -- also example "useFunction.cpp" in the assignment
directory.
- another example: page 37-38 of Shiflet -- also example "ex0102.cpp"
in the assignment directory -- prototypes are used here --
explain the need.
- (cf. (my_example.cpp))
-
-
- Go over programming topics from Monday not covered then
- integer arithmetic -- including surprises about integer division
(e.g. ex0205.cpp)
- modulus operator % and unary - (e.g. ex0205.cpp)
-