Lecture 22 Outline (November 16, 2015)

Reading: text, §10

  1. Greetings and felicitations!
    1. There is apparently a rumor going around that you will be penalized if you do not do the extra credit. This is absolutely untrue; not doing extra credit cannot hurt you as it is not part of your final grade; it is only used if you are on a borderline! If you hear this, please correct the person you heard it from. You can point them to the handout General Information in the Class Information folder under Resources on SmartSite.
    2. Midterms are in my offics; you can come get them there. I’ll need to know your section number.
    3. Homework 2 is back. If you lost any points due to style, you can resubmit your program after fixing the problems, and get up to 80% of the points you lost. If yopu lost points due to non-robustness (basically, anything except commenting), you can see the Secure Programming Clinic for help. I’ll post contact information in the Announcements on SmartSite later today.

  2. How to write a program
    1. Go through homework #3, getint.c

  3. Structures
    1. User-defined datatype
    2. As fields: var.field, ptrvar->field
    3. Use example of list of numbers (usort2.c)
    4. Do insertion sort (linked.c)
    5. Do timing program (timeit.c)

You can also obtain a PDF version of this. Version of November 19, 2015 at 11:07PM