These are notes from Spring, 2001, the last time I taught the Programming
in C++ course. They're here as a resource for students in later courses.
- An Annotated C++ Program - illustrates many
basic terms such as assignments, constants, declarations, definitions,
prototypes, etc.
- Class notes - these are based on Programming in C++, 2nd Ed., by
Nell Dale, Chip Weems, and Mark Headington. They are organized by chapter
in the order the material was covered:
- Chapter 1: Overview
- Chapter 2: A 1st C++ program, simple
computation
- Chapter 3: Expressions, simple
functions
- Chapter 4: input
- Chapter 5: if, conditionals
- Chapter 6: while, types of
loops (count-controlled, sentinel-controlled, eof-controlled, event-controlled)
- Chapter 7: writing functions w/ parameters
- Chapter 8: scope, lifetime
- Chapter 9: for
- Chapter 10: types
- Material on file I/O; draws from Chapters
3, 4, and 6: formatted output, external files, handling eof
- Chapter 11: arrays, including arrays
as parameters
- Chapter 12: C-style strings, string
operations
- Chapter 12, Part B: typedef,
searching, sorting
- Chapter 13: 2-dimensional arrays,
choosing a data structure
- Chapter 14: structures (using
struct), including nested structures and arrays of structures
- Chapter 15: simple object-oriented
programming
- Wrap-up: review of course
- Graphics: basic graphics with HiC