CS 215 - Fundamentals of Programming II
MWF 11, KC-133
Announcements
These are announcements made in class or via email currently in effect
for this course.
Friday, October 7, Re: Additional operations for SweeperCell class
Hope you are having (or have had) a good fall break. Just wanted to
let everyone know that Ili convinced me to add two new operations to
the SweeperCell class, IncrementNumAdjacent and DecrementNumAdjacent
that increase and decrease, respectively, the number of adjacent bombs
by 1. This has been added to the code available on csserver, so if
you have already copied it over, you'll want to do that again. (I also
fixed the comment about the char rep of an uncovered bomb being an
asterisk.)
Links
This is a list of links to resources that may be useful in this
course.
- Dr. Hwang's list of programming
links including information on emacs, vi, Unix, and Linux.
- Cygwin, a UNIX environment for
Windows
-
Putty, a free terminal emulator for Windows that works
much better than the built-in Windows telnet client, especially for
remote access to Unix boxes and using Unix editors, and supports the SSH
protocol
-
Commands to make vi display TABs as 3 spaces instead of the default 8
spaces (and other cool vi things) courtesy of Tim DeBaillie.
However, these .vimrc commands only effect how the tabs are
displayed in vi. When the tabs are printed by a2ps, the
default 8 spaces is still used. However, a2ps has a command
line option (-T#) to have it print tabs as some number of
spaces other than the default. It is used as follows to get 3
space tabs:
a2ps -T3 file1 file2 ...
Note: you only want to do this with source code files, not makefiles
Handouts
This is a list of documents posted for this class in reverse
chronological order. Some will be available in hard copy as well.
- Monday, December 5
- Final Exam Review Sheet (HTML) (PDF)
- Monday, November 28
- Wednesday, November 16
- Monday, November 14
- Wednesday, November 2
- Exam 2 Review Sheet (HTML) (PDF)
- Code from textbook used in lecture
- Wednesday, October 26
- Monday, October 24
- Wednesday, October 19
- Friday, October 7
- Tips on Managing Programming Complexity (HTML) (PDF)
- Wednesday, October 5
- Programming Project 4 (HTML) (PDF)
UPDATE 10/6/05: Added note to PlaceBomb and RemoveBomb description.
- Homework 5 (HTML) (PDF)
- Monday, October 3
- Practical Exam Review Sheet (HTML) (PDF)
- Wednesday, September 28
- Monday, September 19
- Friday, September 16
- Wednesday, September 14
- Friday, September 9
Analyses, Designs, and Code presented in lecture
- Wednesday, September 7
Code used in lecture demonstrating operator overloading
- prog2_3simple - program using simple Time24 objects:
Makefile.prog2_3simple, prog2_3simple.cpp
- prog2_3v1 - program with overloaded operators as member functions:
Makefile.prog2_3v1, prog2_3v1.cpp, time24v1.cpp, time24v1.h
- prog2_3v2 - program with overloaded operators as free functions:
Makefile.prog2_3v2, prog2_3v2.cpp, time24v2.cpp, time24v2.h
- prog2_3final - program with overloaded operators as friend functions:
Makefile.prog2_3final, prog2_3final.cpp, time24.cpp, time24.h
- Monday, September 5
Code used in lecture demonstrating error handling methods.
- prog1_1simplev1 - terminate program in object on error:
Makefile.prog1_1simplev1, simpletime24v1.cpp
- prog1_1simplev2 - object sets a flag on error:
Makefile.prog1_1simplev2, simpletime24v2.h, simpletime24v2.cpp, prog1_1simplev2.cpp
- prog1_1simplev3a - object throws an exception on error, terminate program in main:
Makefile.prog1_1simplev3a, except.h, simpletime24v3.cpp, prog1_1simplev3a.cpp
- prog1_1simplev3b - object throws an exception on error, ask for input again in main:
Makefile.prog1_1simplev3b, prog1_1simplev3b.cpp
- Friday, September 2
- Wednesday, August 31
Code used in lecture demonstrating classes.
This is similar, but not the same as the code presented in the
textbook. In particular, this one has no error checking.
- Friday, August 26
- Wednesday, August 24
- Syllabus and Schedule (HTML) (PDF)
- Very Basic Unix (HTML) PDF)
- Very Basic make (HTML) (PDF)
- Submission Instructions (HTML) (PDF)
- C Strings Tutorial (PDF only)
(from textbook website - reading assignment for Friday)
Back to Dr. Hwang's Home Page
Last modified December 5, 2005