CS 215 (Harlaxton College) - Fundamentals of Programming II
MTR 1:10-2:00, State Dining Room
Announcements
These are announcements made in class or via email currently in effect
for this course.
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, November 26
- Final Exam Review Sheet (HTML) (PDF)
- Thursday, November 22
- Thursday, November 15
- Tuesday, October 30
- Code from textbook showing list and iterator implementation
- Exam 2 Review Sheet (HTML) (PDF)
- Thursday, October 25
- Programming Project 6 (HTML - the figure isn't as clear as it should be) (PDF)
- Homework 7 (HTML) (PDF)
- Tuesday, October 23
- Code used in lecture: prg8_3.cpp, random.h. Also available on the Harlaxton server in directory /home/hwang/cs215/lecture26
- Monday, October 22
- Code used in lecture: postfixeval.cpp, prog8_1.cpp. Also available on the Harlaxton server in directory /home/hwang/cs215/lecture25
- Thursday, October 18
- Programming Project 5 (HTML) (PDF)
- Homework 6 (HTML) (PDF)
- Code used in lecture: prog7_1.cpp. Also available on the Harlaxton server in directory /home/hwang/cs215/lecture24
- Tuesday, October 9
- Tips on Managing Programming Complexity (HTML) (PDF)
- Thursday, October 4
- Friday, September 21
- Thursday, September 20
- Monday, September 17
Code used in lecture
- Thursday, September 13
- Tuesday, September 11
Analyses, Designs, and Code used in lecture
- Monday, September 10
Code used in lecture demonstrating operator overloading. Uses
some code from 9/3/07 and 9/6/07 below. Also available on the Harlaxton server in
directory /home/hwang/cs215/lecture07
- 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
- Thursday, September 6
- Programming Project 1 (HTML) (PDF)
- An Analysis and Design Style Guideline (from CS 210)
(PDF only)
Code used in lecture demonstrating error handling methods. Uses
some code from 9/6/07 below. Also available on the Harlaxton server in
directory /home/hwang/cs215/lecture06
- 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, simpletime24v3.cpp, prog1_1simplev3a.cpp, except.h
- prog1_1simplev3b - object throws an exception on error, ask for input again in main:
Makefile.prog1_1simplev3b, prog1_1simplev3b.cpp
- Tuesday, September 4
- Program 1-3 on page 34-35 (corrected to use string::npos and unsigned int). File is also available on the Harlaxton server in directory /home/hwang/cs215/lecture05
- Monday, September 3
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. Also available on
the Harlaxton server in directory /home/hwang/cs215/lecture04
- Thursday, August 30
- Tuesday, August 28
- Programming Style Guidelines (HTML) (PDF)
- Homework 1 (HTML) (PDF). Due date extended to Monday, September 3
- Monday, August 27
- 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 Tuesday)