Outline for April 17, 2002

Handouts: Command Line Arguments, Pointers
Reading: Johnsonbaugh & Kalin pp. 245-265, 305-329


  1. Greetings and felicitations!
    1. Ke Zhang will be available for grading from 7--9 PM tonight
  2. fileio.c
    1. like program 5 from first handout, but driven by files not standard input
    2. show technique for developing this (program becomes function, add file I/O driver)
    3. go through file manipulation functions
  3. echo.c
    1. go through command line arguments
    2. describe argc, argv[argc]
    3. explain argv[0]
  4. echon.c
    1. go through command line options
    2. do char-by-char check for -n
    3. show strcmp, strncmp
  5. ptr.c

ECS 30-A, Introduction to Programming
Spring Quarter 2002
Email: cs30a@cs.ucdavis.edu