CS156

PmWiki

edit SideBar

Class Schedule

Date Topics Slides Reading Homework/Quiz
Mon Feb 23
  • Syllabus
  • CPL (pre-1963)
  • BCPL (1966)
  • B (1969)
  • C (1972)
  • Java totally rulez—why learn an old language?
  • Standard C—says who?
    -or-
    “It works on my computer!”

ppt pdf pdf×4

HW0: Make sure that you still have a CS Dept. login.

Practice Problems

// Halley’s Comment

Wed Feb 25
  • More Introduction
  • man 3 printf
  • Variables, Statements and More
  • Arithmetic
  • Input & Output
  • Buffering

ppt pdf pdf×4

Practice Problems

If it weren’t for C, we’d all be programming in BASI, OBOL, and Pasal.

Fri Feb 27
  • Discuss HW1
  • Homework must compile!
  • Bases, numbers, problems in C
  • Control Structures: if, switch

ppt pdf pdf×4

Practice Problems

There are 10 types of people in this world: those who understand binary and those who don’t.

Mon Mar 2
  • Finish if, else, and switch
   

HW1 due tomorrow

One of the main causes of the fall of the Roman Empire was that, lacking zero, they had no way to indicate successful termination of their C programs.

Wed Mar 4
  • Review HW1
  • Review Q1
  • Loops

ppt pdf pdf×4

Loops Practice Problems
Quiz #1

FoxTrot

Fri Mar 6
  • Discuss HW2
  • Finish Loops
  • Start functions

ppt pdf pdf×4

Functions Practice Problems
Self-Quiz

C is quirky, flawed, and an enormous success.
-Dennis Ritchie

Mon Mar 9
  • Finish Functions
 

C Reference Card

HW2 due tomorrow

A programmer tells a colleague his wife just had a baby.
“Is it a boy or a girl?”
“Yes.”

Wed Mar 11
  • Review HW2
  • Review Q2
  • Recursive Functions
  • How to program
  • Arrays

How to program: ppt pdf pdf×4
Arrays: ppt pdf pdf×4

Practice Problems: Arrays More arrays Self-Quiz
Quiz #2

Fri Mar 13
  • Discuss HW3
  • Finish arrays
  • Don’t use sizeof on an array parameter.
   

Should array indices start at 0 or 1?
My compromise of 0.5 was rejected without, I thought, proper consideration.

S  p  r  i  n  g        b  r  e  a  k  !
Mon Mar 23
  • Strings

ppt pdf pdf×4

HW3 due tomorrow

Practice Problems: Strings (answers)

As soon as we started programming, we found to our surprise that it wasn’t as easy to get programs right as we had thought. Debugging had to be discovered. I can remember the exact instant when I realized that a large part of my life from then on was going to be spent in finding mistakes in my own programs.

Maurice Wilkes discovers debugging, 1949

Wed Mar 25
  • Review HW3
  • Review Q3
  • Finish Strings
  • File I/O

ppt pdf pdf×4

Practice Problems: File I/O (answers)
Quiz #3

These two strings walk into a bar and sit down.
The bartender says, “So what’ll it be?”
''The first string says, “I think I’ll have a beer quag fulk boorg jdk^CjfdLk jk3s d#f67hw%^U r89nvy~~owmc63^Dz x.xvcu”
“Please excuse my friend,” the second string says, “He isn’t null-terminated.”''

Fri Mar 27
  • Discuss HW4
  • More file I/O
   

If the odds are a billion-to-one against something happening, it’ll happen several times per second, on today’s computers.
-Bret McKee

Mon Mar 30
  • i=--i; and a=b++ * b++;
  • Program Development using Morse Code:
   

HW4 due tomorrow

No, syntax isn’t a tax on booze and cigarettes.

Wed Apr 1
  • Review HW4
  • Review Q4
  • Review for exam
  • Course evaluation
   

Quiz #4

Fri Apr 3
  • Final Exam
    Questions will come from (or be based on) the quizzes, the practice problems, and your homework.
   

Final Exam

Edit - History - Print - Recent Changes - Search
Page last modified on December 31, 2008, at 06:42 PM