CS 215 - Fundamentals of Programming II

TT 9:30-10:45, KC-254 (new room)

Announcements

These are announcements made in class or via email currently in effect for this course.

Friday, April 8, Re: Project 6 correction
I realized this morning that I inadvertently introduced an error in the specification of the explicit-value constructor for the Filing Cabinet class. The sentence: "Each drawer (except perhaps the last) should be filled to its maximum number of folders." should be deleted. The idea is to add each folder in the order they are presented in the vectors, so unless the items are already in order (which they are not), the number of folders in each drawer after initialization is neither maximal, nor a constant.

Tuesday, April 5, Re: Project 5 typo
Steve Calderwood has pointed out a typo in the example input/output for Part 2 of Project 5. The third example input should be: ([ ]{( )} (i.e., it's missing the last right curly brace) to generate the output: Extra delimiter ( found. Thanks, Steve!

Monday, March 28, Re: Project 5, Part I
I've had a couple of questions regarding Part I of Project 5 that leads me to believe that the third criteria is somewhat ambiguous. It says: Each word should be inserted into the appropriate list so that the list is kept in order and does not contain duplicates using a single function. This is similar, but not exactly the same, as the function presented in the textbook.

Here is updated wording for the third criteria: Each word should be inserted into the appropriate list such that each list is kept in alphabetical order and does not contain duplicates using a single function. This is similar, but not exactly the same, as the function presented in the textbook.

Tuesday, January 25, Re: Warnings in Homework 2 program
Well, someone should have told me that they still get a warning even after using string::npos instead of -1 in the Homework 2 program!

If you use -1, you'll get the following warning:

warning: passing negative value `-1' for argument 2 of
`std::basic_string<_CharT, _Traits, _Alloc> std::basic_string<_CharT, _Traits,
_Alloc>::substr(_Alloc::size_type, _Alloc::size_type) const [with
_CharT = char, _Traits = std::char_traits, _Alloc =
std::allocator]'
With string::npos, you get warning:
warning: comparison between signed and unsigned integer expressions
This is because dotIndex is an int and string::npos is an unsigned int. This particular warning is not very serious unless you are using very large unsigned ints. If you would like to get rid of the warning, you can do so by declaring dotIndex as an unsigned int.

Monday, January 24, Re: Changes in CS Lab
This note is just to document the changes in the CS Lab that you all discovered for me last week. Sorry about that. I guess that's what happens when one is gone for a year and someone else takes care of one's lab.

  1. To change your password, you should use the yppasswd command. It works just like the passwd command, but you can use it on any of the client machines in the lab (as well as csserver) and your password will propagate instanteously to all the other machines.

  2. The default user shell was changed to bash and the initialization files for this shell do not have `.' (dot, i.e., current directory) in the path for execution. This means that to run your programs, you need to explicitly specify the current directory using ./program

    There are security reasons for leaving it this way, but if you want to add `.' to your path, I or one of the labworkers can show you how to do that.

  3. The pine mail program was not installed on the client machines. I'm having that done this week, but you can always log into csserver and mail your submissions from there. You can also use the web interface to your ACENET mail account.

Links

This is a list of links to resources that may be useful in this course.

Handouts

This is a list of documents posted for this class in reverse chronological order. Some will be available in hard copy as well.



Back to Dr. Hwang's Home Page
Last modified April 21, 2005