Documents

Stern Warning
Any notes found here are intended to supplement your own lecture notes.
They are not a substitute for attending class.

Lecture No. Topic PDF link PPTX link
Lec 00 Makefiles (Supplemental) PDF PowerPoint
Lec 01 Intro and C++ Primer PDF PowerPoint
Lec 02 C++ Primer (cont) PDF  
Lec 03 Arrays and Functions PDF PowerPoint
Lec 04 Pointers PDF PowerPoint
Lec 05 References PDF PowerPoint
Lec 06 Classes and Objects PDF PowerPoint
Lec 07 Classes and Objects (cont) PDF PowerPoint
Lec 08 Overloaded Constructors and Review PDF PowerPoint
Lec 09 Overloaded Operators and More PDF PowerPoint
Lec 10/11 Inheritance PDF PowerPoint
Lec 12 Linked Lists PDF PowerPoint
Lec 13 Friends and More PDF PowerPoint
Lec 14 Polymorphism PDF PowerPoint
Lec 15 Polymorphism (cont) PDF PowerPoint
Lec 16 Exceptions PDF PowerPoint
Lec 17/18 "Bits & Pieces" and Templates PDF PowerPoint
Lec 19/20 Iterators PDF PowerPoint

Livecoding Files

Below are copies of the files we created in class. Brief notes have been provided where appropriate.

Lecture No. Filename Notes
Lec 03 fillUp.cpp Example of array usage and syntax
Lec 05 array.cpp Example of memory locations in an array
references.cpp Example of passing by value, address, and reference
Lec 06 Rectangle.cpp
Rectangle.h
Incomplete implementation of Rectangle class
File containing main() is not provided
Lec 08 Rectangle.cpp
Rectangle.h
Complete implementation of Rectangle class
exRect.cpp Contains main()
To compile and link the files:
g++ -Wall -ansi -c Rectangle.cpp
g++ -Wall -ansi -c exRect.cpp
g++ Rectangle.o exRect.o -o executableNameGoesHere
Lec 09 Money.cpp
Money.h
Implementation of Money() class, including an overloaded subtraction operator
moneyTest.cpp Contains main()
Lec 15 poly.cpp
poly.h
Example of polymorphism
Partial implementations of an Animal class and its child classes Bird, Cat, and Dog
exPoly.cpp Mostly-empty main(), and step-by-step instructions on how to
complete both the main() and the class implementations.
Solution not provided due to the variability of the ways the files can be completed.
Makefile
Lec 17 temp.cpp Example implementation of a (very basic) templated function, with all code in a single file.