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) | PowerPoint | |
Lec 01 | Intro and C++ Primer | PowerPoint | |
Lec 02 | C++ Primer (cont) | ||
Lec 03 | Arrays and Functions | PowerPoint | |
Lec 04 | Pointers | PowerPoint | |
Lec 05 | References | PowerPoint | |
Lec 06 | Classes and Objects | PowerPoint | |
Lec 07 | Classes and Objects (cont) | PowerPoint | |
Lec 08 | Overloaded Constructors and Review | PowerPoint | |
Lec 09 | Overloaded Operators and More | PowerPoint | |
Lec 10/11 | Inheritance | PowerPoint | |
Lec 12 | Linked Lists | PowerPoint | |
Lec 13 | Friends and More | PowerPoint | |
Lec 14 | Polymorphism | PowerPoint | |
Lec 15 | Polymorphism (cont) | PowerPoint | |
Lec 16 | Exceptions | PowerPoint | |
Lec 17/18 | "Bits & Pieces" and Templates | PowerPoint | |
Lec 19/20 | Iterators | 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. |