Lectures

Lecture notes are provided as PDF files.

Lecture Date Files Notes
1 & 2 1/28 Introduction Slides
Compilation Process
Top Programming Languages
C++ Primer, Part 1
slide_ex.cpp
Be sure you are familiar with the course policies!
  • Introduction to the C/C++ language
  • Demonstration of tools for working with GL
  • 3 2/2 C++ Primer, Part 2
    func.cpp
    scope.cpp
  • Expressions and scope
  • Conditionals, blocks, loops
  • Functions
  • 4 2/4 Arrays and Pointers
    array_example.cpp
    char_array_example.cpp
    ptrs.cpp
  • Arrays
  • Arrays with functions
  • Pointers
  • 5 2/9 new_example.cpp
    array_example.h
    array_example.cpp
    Makefile for array_example
  • Arrays and Pointers wrap-up
  • 6 2/11 Classes and Objects, Part 1
  • Introduction to Classes & Objects
  • 7 2/16 Classes and Objects, Part 2
    Dinosaur.cpp
    bank1.cpp, bank1a.cpp, bank2.cpp
  • More Classes & Objects
  • 8 2/18 Classes and Objects, Part 3
    dino.cpp
    Dinosaur.h
    Dinosaur.cpp
  • Constructors
  • Aggregation
  • 9 2/23 Review & Catch-up
  • Midterm Review (see Exams page)
  • Project 1 Questions
  • 10 2/25 Midterm Exam 1
    11 & 12 3/1 & 3/3 Operator Overloading, Part 1
    Operator Overloading, Part 2
    Sample Code
    • Basic overloading
    • Friend methods
    • Overloading the insertion operator
    • Overloading unary operators
    13 & 14 3/8 & 3/10 Copy and Assignment
    Sample Code
    • Copy constructors
    • Overloading the assignment operator
    15 & 16 3/22 & 3/24 Inheritance
    Sample Code
    • Basic inheritance
    • Overriding vs. overloading
    • Introduction to Polymorphism
    17 3/29 Class Canceled
    18 10/31 Polymorphism, Part 1
    Polymorphism, Part 2
    • Polymorphism and Destructors
    19 4/5 Midterm Exam 2
    20 4/7 Exceptions
    Sample Code
    • Throwing exceptions
    • Catching exceptions
    • Exception classes
    • Exceptions with constructors
    21 4/12 Templated Functions
    Sample Code
    • Templated functions
    • Using templated functions
    22 4/14 Templated Classes
    Sample Code
    • Review of templated functions
    • Templated classes
    • Multiple templates
    • Multiple files (.h & .cpp)
    • Use of friend
    23 4/19 Iterators and STL
    • Standard Template Library (STL)
    • Iterators