CS253

This file defines the header for each page. An optional "icon" image (I use the textbook):

Replace this with info about this class:

CS253: Problem Solving with C++

Spring 2013

Home Page

Links to the various pages for this class:

Wish I could do this: * Schedule

This is the home page for CS253, Problem Solving with C++, a CSU Computer Science class.
Click on the links, above, for other class pages.


Here’s a signature date '+!!! B %-d %-I:P'

Grades are Available

Saturday May 18 1:33ᴘᴍ

CutoffGrade
≥ 88A
≥ 76B
≥ 64C
≥ 52D
< 52F

~cs253/bin/grade will now show your final exam score (FINAL), your curved final exam score (FINAL-curved), your total score (TOTAL), and your letter grade (LETTER). The letter grade that you see is the one that you will get.

Read this if you have questions about your grade.


Silly Question

Thursday May 16 6:22ᴘᴍ

There are three landlocked countries surrounded entirely by just one other country:

Averages So Far

Tuesday May 14 7:14ᴘᴍ

A student asked for the average scores so far.

Homework #12.77Quiz #13.33Midterm #15.86
Homework #23.88Quiz #1 curved4.11Midterm #1 curved10.41
Homework #33.79Quiz #22.45Midterm #26.30
Homework #43.83Quiz #2 curved3.98Midterm #2 curved10.67
Homework #52.89Quiz #32.89
Homework #63.65Quiz #3 curved4.01

Office Hours During Finals Week

Tuesday May 7 11:45ᴀᴍ

My office hours during finals week will be in my office, CSB 246.

No Extra Credit

Monday May 6 6:04ᴘᴍ

There will be no extra credit.

Another HW6 Test Program

Saturday May 4 9:08ᴘᴍ

I’m pleased to see that several students have turned in HW6. However, it is distressing that most of the submissions, so far, ignore the comparison functor in favor of direct comparisons in some methods. I’ve added a new test program with incomparable types. Try it.

Another HW6 Correction

Tuesday April 30 12:01ᴘᴍ

insert(iterator, iterator) should return void.

HW5 Scores

Monday April 29 11:32ᴘᴍ

HW5 scores are now available: ~cs253/bin/grade HW5

HW6 Corrections

Saturday April 27 8:08ᴘᴍ

Thanks to Jamie for pointing out several errors in HW6, which are now corrected.

New HW6 Test Program

Friday April 26 10:43ᴘᴍ

HW6 now has a third test program. It uses a comparison functor and a C++11 range-based for loop.

Beware of *.gch

Saturday April 20 1:16ᴘᴍ

If you erroneously try to compile a *.h file, it will create a compiled version called *.gch. This will confuse you, because your *.h file will be ignored in favor of *.gch. Remove *.gch files when you see them, and have your “make clean” rm *.gch.

Wednesday’s Recitations

Thursday April 18 10:51ᴘᴍ

Since Wednesday’s recitations were cancelled due to snow:

HW5 Extension

Friday April 12 12:01ᴘᴍ

HW5 is now due Monday, April 22nd, at 3:00ᴘᴍ.

Midterm Scores

Tuesday April 9 1:18ᴘᴍ

Midterm #2 scores, raw & curved, are now available.

Midterm Silly Question

Tuesday April 9 1:14ᴘᴍ

The earth is closest to the sun around January 4th. This has nothing to do with the seasons, which are not the same in the northern and southern hemispheres.

HW4 Grades Available

Tuesday April 9 11:51ᴀᴍ

HW4 grades are now available.

HW5 Clarification #1

Tuesday April 9 8:27ᴀᴍ

The executable is called snake, singular, not plural.

HW5 Available

Sunday April 7 4:57ᴘᴍ

HW5 is now available.

No Office Hours Monday

Friday April 5 2:01ᴘᴍ

I will have no office hours Monday, April 8th. I’ll be in CSB 250 (corner room) at that time if you want to talk.

operator>>

Tuesday March 26 11:51ᴀᴍ

The gcov lab has an excellent example of operator>>.

HW3 Solution

Sunday March 24 5:41ᴘᴍ

My read-only solution to HW3 is available: Words.h Words.cc

No Office Hours During Break

Friday March 15 12:44ᴘᴍ

I will not have any office hours during spring break.

HW4 Released

Wednesday March 13 8:31ᴀᴍ

HW4 is now available.

Midterm #1 Curved

Tuesday March 5 12:17ᴘᴍ

The midterm has been curved. ~cs253/bin/grade

More HW3 Clarifications

Monday March 4 2:35ᴘᴍ

On HW3, the method operator=(bool) has been changed to set_case_independent(bool). There were problems with trying to do:

    w = "e___e";

because that called operator=(bool) instead of operator=(std::string).

Also, you have to pay attention to the various settings (dictionary, guesses, case-independent flag) at the time the the data is requested. You’ll get the wrong answers if you compute the answers earlier, and then somebody changes a setting on you.

HW3 Clarifications

Sunday March 3 10:52ᴀᴍ

HW3 Due Date Delayed

Thursday February 28 8:33ᴘᴍ

HW3 is now due one week later, on March 13.

HW3 Available

Wednesday February 26 11:53ᴘᴍ

HW3 is now available.

Correction on Midterm #1 question 11:

Wednesday February 26 3:11ᴘᴍ

I just sent the following to my teaching assistants:

As you recall, there was a question about copy ctors on the midterm:

11) Write the declaration for a copy constructor for class Whatever. Yes, the declaration.

The best answer is:

    Whatever(const Whatever &); // pass argument by const reference

This answer, which will fail if trying to copy a const object, is also acceptable:

    Whatever(Whatever &);	// pass argument by non-const reference

Then there’s this answer. This is invalid C++ (see below), but, because I incorrectly stated in class that it’s valid, this should also be granted points for Midterm #1 only. If a student comes to you with the following, they should get a point for it:

    Whatever(Whatever);		// pass argument by value (INVALID C++)

In all cases, it’s also acceptable to put in a variable name:

    Whatever(const Whatever &w); // pass argument by const reference
    Whatever(Whatever &w);	 // pass argument by non-const reference
    Whatever(Whatever w);	 // pass argument by value (INVALID C++)

Why is the third one invalid? It seems reasonable, at first: we want to pass the argument by value. Just copy the actual parameter, from the calling code, to the formal parameter w. Wait--copy? How do you copy an object? You call the copy constructor. But this is the copy constructor! We can’t call the copy ctor from the copy ctor—that’s infinite recursion. That’s why we must use a reference.

That’s why the third one is invalid C++, and will not compile. But we shouldn’t punish the students for my error, so they get a point for it.

Midterm Silly Question

Tuesday February 25 10:19ᴘᴍ

The last question on the midterm was:

Name an animal whose scientific name (Latin name, binomen) (for example, Felis catus) is the same as the common name (for example, cat).

There are two answers:

Office Hours

Saturday February 23 12:10ᴘᴍ

My office hours will actually be in my office, CSB 246, Monday February 25 and Tuesday February 26.

HW2 Graded

Thursday February 21 6:24ᴘᴍ

HW2 scores are available: ~cs253/bin/grade HW2
Specify HW2 to get detailed feedback.

Q1 Curved

Sunday February 10 11:43ᴀᴍ

Q1 has been curved. ~cs253/bin/grade

HW2 Writeup Improved

Wednesday February 6 8:48ᴘᴍ

The HW2 writeup has been improved after today’s class, with many clarifications.

HW2 Available

Tuesday February 5 8:58ᴘᴍ

HW2 is now available.

HW1 Graded

Monday February 4 9:13ᴀᴍ

HW1 has been graded. For detailed information:

    ~cs253/bin/grade HW1

HW1 Solution

Thursday January 31 6:06ᴘᴍ

My read-only solution to HW1 is available here.

HW1 Available

Sunday January 27 11:18ᴀᴍ

HW1 is now available.

No Onions in CSB

Tuesday January 22 3:14ᴘᴍ

Please, no onions in the Computer Science Building, including the Linux Lab. One of our faculty has a severe allergy.

First Lab Optional

Monday January 21 1:38ᴘᴍ

Recitation (lab) the first week is optional. Attend if you need help logging in, editing files, using g++, or general help with HW0. If your recitation was Monday, then you may attend one of the other recitations (see the syllabus) this week.

Announcements go here

If I clarify an assignment, change a due date due to weather, etc., I’ll announce it here.

Modified: 2013-04-26T22:46

User: Guest

Check: HTML CSS
Edit History Source
Apply to CSU | Contact CSU | Disclaimer | Equal Opportunity
Colorado State University, Fort Collins, CO 80523 USA
© 2015 Colorado State University
CS Building