Lecture 24 Outline (November 20, 2015)

Reading: text, §11.1, 12.7, 13

  1. Greetings and felicitations!
    1. Midterms are in my office; you can come get them there.

  2. Pointers to pointers
    1. Review planet sorting with structures (planets2.c)
    2. Planets as an array of pointers (planets3.c)

  3. File I/O
    1. File pointers
    2. Associate pointer with file (fopen)
    3. Reading in text data with a fixed format (fscanf)
    4. Disassociating pointer from file (fclose

  4. Command-line arguments
    1. First as array of pointers (planets4.c)
    2. Then as pointer to pointers (planets4.c)
    3. Actions tied to program name

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