Wolf Bein



CS 202


ANNOUNCEMENTS




Posted 08-19-16:
The pages for this course are now ready. The syllabus is subject to change.


Posted 08-19-16:
If you do not have an account in the lab yet: Here is the account application.


Posted 08-29-16:
The office hours have changed: Tuesday 11:30 am - 1:00 pm, Thursday 11:30 pm - 1:30 pm.


Posted 08-31-16:
Here are prointers for a good design document. In this class design documents will be simpler. I will give more details in class. (Assignment 1 does not require a design document.)


Posted 08-31-16:
Reading: Read Chpater 1 by now; reading for next week: 2.1 and 2.2.



Posted 08-31-16:
Tuesday's code: Picture of a throttle, Throttle declaration, First throttle, Throttle constructors, improved throttle.


Posted 09-04-16:
Materials for independent compilation: ind.tar. More about Make files.


Posted 09-12-16:
Reading by Thursday: 2.3, 2.4. More code for this week: newpoint.cxx and newpoint.h.


Posted 09-20-16:
Reading: Chaper 1 and Chapter 2.


Posted 09-20-16:
Here is an implementation of the point class, with all functions as member functions or friends. Probably not the best design, but you can use this to practice: newpoint_allmember.h and newpoint_allmember.cxx


Posted 09-22-16:
The slightly simplified bag without typedefs, bag0: bag0.cxx, bag0.h and bag_demo0.cxx.


Posted 09-22-16:
Reading: 3.1.


Posted 09-26-16:

The first test is coming up next Tuesday, October 4, 10:00 am. The test covers material up to the September 29 lecture.

Study Guide
(A) Recommended Reading:
Chapter 1.
Chapter 2.
Chapter 3.1
(B) Review assignment sheets 1-5.


Posted 10-06-16:
Code segments to practice pointers:
poi.cxx poi2.cxx. poi3.cxx. poi.tar.


Posted 10-11-16:
Assignment 6 (sequence class) is now due Thursday, October 11.


Posted 10-11-16:
Our meeting next Tuesday, October 18 will be online, a link will be posted Tuesday morning, the link will be available from 9 am until 12 noon.
Current Reading: Chapter 3.


Posted 10-18-16: (Lecture October 18)

In the playlist below are two videos, on the C++ language. The first one features Bjarne Stroustrup, the creator of C++. The other one is by Herb Sutter, a current lead designer for C++. Watch the first video up to minute 50 and the second up to minute 20.




After you have watched the two videos, as reading, read Appendices G and H in the text book.



Posted 10-19-16:
Current reading: 4.1-4.4.

Posted 10-19-16:

Here is the the modified string class "obstring" for your project
obstring.tar.


Posted 10-24-16:
A simplified node as a struct: easy_node.cxx .


Posted 10-31-16:
Here is node1.h without typedefs.
Here is the modified code from Chapter 5
chapter5modified.tar. (The code in chapter5modified.tar is not needed for assignment 9).


Posted 10-31-16:

The second test is coming up next Tuesday, November 8, 10:00 am. The test covers material from the September 29 to the up to the November 3 lecture.

Study Guide
(A) Recommended Reading:
Chapter 3.2-3.4
Chapter 4.1-4.5
Chapter 5.1, 5.2
(B) Review assignment sheets 6-9.


Posted 11-01-16:
Assignment 9 is now due on Saturday, November 5.


Posted 11-03-16:
Here is the random number code.


Posted 11-14-16:
Assignment 10 is due on Friday, November 18.


Posted 11-15-16:
By now you should have read 5.1, 5.2, and 5.3.
Current Reading: 6.1 and 6.2
Additional reading (beyond what we covered in class): 6.3, 6.4


Posted 11-16-16:
Materials for recursion:
recursion.tar





Posted 11-21-16:
Two different versions to write vertical recursively: write_vertical.cxx, write_vertical_different.cxx.





Posted 11-29-16:

How to measure the run of your program:

You need to use the command time. The syntax for using time is
time ./a.out
The output for time will have three lines like these.
real 59.95
user 55.24
sys 0.09
Use is the one called `user'. (55.24 in the example below.)
The other ones (real, sys) take operating system overhead
into account.



Posted 11-30-16:

Asgn 12 is now due Tuesday, December 6, in class. Current Reading: 9.1 and 9.3





Posted 12-07-2016:
Reminder: The final is next Tuesday, December 13, 10:10 a.m - 12:10 pm. It is cumulative and covers all material.

Study Guide

(A) Recommended Reading:
Chapter 1: 1.1, 1.2, 1.3
Chapter 2: 2.1, 2.2, 2.3, 2.4, 2.5
Chapter 3: 3.2, 3.3
Chapter 4: 4.1,4.2, 4.3, 4.4, 4.5
Chapter 5: 5.1, 5.2, 5.3
Chapter 6: 6.1, 6.2, 6.3
Chapter 7: 7.1, 7.3
Chapter 8.1, 8.3, 8.3
Chapter 9.1, 9.3
Chapter 14.1, 14.2
(B) Review assignments 1-13.
(C) Recall the recent classes stack, queue, as well as the earlier ones throttle, fraction, point, bag, sequence, set, string, node.