CS253

CS253: Software Development with C++

Fall 2011

Home Page

CS253: Problem Solving with C++ (Fall 2011)

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


Grades are Posted

Grades are now available in RamCT. The letter grade that you see is the one that you will get.

Silly Exam Question

Mario first appeared in the arcade game Donkey Kong.

HW5 Solution

My solution to HW5 is available here.

HW6 Solution

My solution to HW6 is available here.

AgeCompare bug fix

I fixed a bug in the AgeCompare functor of HW6 that will affect 0.01% of users.

No Extra Credit

There will be no extra credit.

More HW6 tests

Another test program, that uses a comparison functor for incomparable objects, has been added to the HW6 writeup.

HW6 test program

The HW6 writeup now has a much larger test program.

HW5 Grading

Please send me an Email ASAP and request a time between now and November 18th to grade your assignment. You need to be present at the time of grading. It will take up to 15 minutes for each student . Make sure that you specify the time periods you can be available at the CS department in your message. For example, send me Thursday November 10th between 2ᴘᴍ and 4ᴘᴍ. Make sure that you send me all of your availablity within this period. If you do not set a time within this period, you will get 0 points for HW5. So, please set a time ASAP and make sure you receive confirmation for your appointment. Note that you still need to submit your HW5 via RamCT as usual due to the specified deadline on HW5 webpage. You will be graded according to the requirments mentioned on the HW5 webpage, so make sure your code meets them as much as possible .

~Amin

HW4 Solution

My read-only solution to HW4 is here: Time.h Time.cc WTime.h WTime.cc

HW4 Test Cases

HW4 Test Cases are available on RamCT.

HW5: Use gtkmm 2.4 or 3.0

For HW5, you may use either gtkmm 2.4 or the newer gtkmm 3.0. I used gtkmm 3.0 in my solution.

Note that there is no grid widget in gtkmm 2.4.

CSU Open

At 8:36ᴀᴍ on Wednesday October 26th, CSU is open as usual!

Announcement about Quiz2 and Assignments 1-3

Originally , I had graded question 3 of Quiz2 harshly . However , we have changed the policy with that regard. So if you think your response to question 3 is right or even kind of right , please come and see me during the office hours to give you back the grade of that question.

This is the final call to regrade HW1 , HW2 and HW3 . Please re-look at your grade and comments for HW1 HW2 and HW3. If you think with a small change in your program, your program is gonna work properly or at least would work better than now , please come and see me by end of this week during my office hours. After this week , no change will be made in your grade. This is true just for these HWs and starting from HW4, you will be graded according to what you have submitted.

~Amin

HW3 Test Cases

HW3 Test Cases have been uploaded to RamCT. Please find it under discussion link.

HW4 Available

HW4 is now available.

HW3 Solution

My read-only solution to HW3 is here: Links.h Links.cc

OK to change HW3 constructor

The HW3 description has been altered to allow modifying the declaration of the constructor with the optional delimiter.

HW3 Test Case

Here is one way that we will test your HW3. This program:

#include "Links.h"
#include <iostream>

int main() {
    Links a(',');
    a.process("/s/bach/a/class/cs253/public_html/sample.html");
    a.censor("/advising/surge.html");
    a.process("/s/bach/a/class/cs253/public_html/sample.html");
    std::cout << a;
    std::cout << "First saw http:/www.cs.colostate.edu/ on line "
              << a["http:/www.cs.colostate.edu/"] << '\n'; 
}

should produce this output:

4,http://www.engin.umich.edu,The Champions of the West
9,http:/www.cs.colostate.edu/,Not USC
13,http://www.hp.com/,Tablets?  What tablets?
19,http://www.engin.umich.edu,The Champions of the West
24,http:/www.cs.colostate.edu/,Not USC
28,http://www.hp.com/,Tablets?  What tablets?
First saw http:/www.cs.colostate.edu/ on line 9

HW3 Clarification

Treatment of the line number in process() and clear() has been clarified in HW3.

HW2 Test Cases

here are the Test Cases. To see your output vs master output , please send an Email to sobhani@cs.colostate.edu.

HW2 Scores Released

Your scores for HW2 are now available via RamCT.

HW2 Solution

My solution to HW2 is here. It’s for viewing, only.

C++ File I/O

For an example of C++ file I/O, see page 177 of the textbook. Opening a file and using getline should get you through HW2.

System example

Here’s an example of using system:

    #include <string>
    #include <cstdlib>

    using namespace std;

    int main() {
        string command = "date";
        command += " >xyz";
        system(command.c_str());    // leaves output in the file xyz
    }

Re-submitting homework

I’ve added a section to the Homework page on re-submitting homework.

Office Hours Monday

I will be in the Linux Lab 5:00–7:00ᴘᴍ Monday, September 5th.

HW2 available

HW2 is now available.

Downloading your work

I’ve created a program that transfers a file from a CSU computer to your home computer, with help from your browser. Use it when connected to a CSU computer from home (using putty or ssh) like this (where % is your prompt):

    % ~cs253/bin/download hw1
    Direct your browser to: http://www.cs.colostate.edu/~applin/downloadexample.php

Now, go to that URL in a browser (Firefox, Internet Explorer, etc.). It will download the file hw1 to your local computer. Make sure you know where it is, and then check it in with RamCT.

Hint for HW1

For HW1, consider using getline. Make sure to use the std::string version, not the C-string version.

Using RamCT

Unlike previous semesters, we’re now using RamCT to submit homework, report homework points,quiz/test scores, and the final grade. There’s a link to RamCT on the sidebar.

Modified: 2011-12-16T12:51

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