Introduction

Tom Kelliher, CS 320

Jan. 17, 2001

Administrivia

Announcements

Assignment

Read Chapter 1 of Angel.

Outline

  1. Syllabus.

  2. C Foundations.

Coming Up

C: Accessing command line arguments, atoi() and friends, I/O in C.

Creating, compiling, running an OpenGL program.

Syllabus

  1. What's on the class home page?

  2. Books.

  3. Grading.

C Foundations

A queue as a linked list in C --- contrast with Jill. Elements:

  1. Memory: storage, alignment, lvalues, rvalues.

  2. Conceptual implementation of this linked list.

  3. structs. Self-reference.

  4. Overview of queue routines.

  5. malloc(), free(), sizeof().

    Re-write test.c to allocate nodes dynamically.

  6. Rewrite insqu() and remqu() to take/return key values directly.

    Problems? (Particularly with free'ed memory in remqu(), but also with remqu()'s new user interface.)



Thomas P. Kelliher
Wed Jan 17 07:48:22 EST 2001
Tom Kelliher