Michael Loceff's Modules

These modules were originally written by Michael. This is my snapshot from several quarters ago. Just like C++ itself, most of the material is still relevant and provided for easy reference here.

The most recent version of these modules could be found in many places online. I found a copy at our CS Club site, which may be about the same version as mine. These are for your benefit only. I only fix the odd serious typos.

Almost every topic we cover in CS2A can be found in Michael's material. Once you locate what you want, simply bookmark it in your browser. I left the Week numbers in the module headings intact. They are an approximate map to the sequence in which we cover topics in the course. But they are not exactly 1-1. So exercise your good judgement in deciding what to read when.

Happy Hacking,

&

Week 1A - The Programming Experience

Week 2A - Simple C++Programs

Week 2B - Data Types

Week 3A - User Input

Week 3B - Selection

Week 4A - Repetition

Week 4B - Sneak Peek at Week 8A - Arrays and a Sort Algorithm

Week 5A - Methods

Week 5B - Parameters Passing and Global Variables

Week 6A - Object-Oriented Programming (OOP)

Week 6B - Instance Methods

Week 7A - Deeper into Classes

  • Static Members
  • Static Methods
  • What is this?
  • Returning Objects
  • The Rectangle Class
  • Knowledge Check
  • Analysis of an OOP Project
  • Completion of an OOP Project
  • Week 7B - Interaction between Objects and Methods

    Week 8A - Arrays and a Sort Algorithm (Deja vu)

    Week 8B - Compound Data Types: Arrays in Classes

    Week 9A - Search Algorithms and Stack Data Structures

    Week 9B - Recursion and a Binary Search Algorithm

    Week 10A - Pointers and Dynamic Memory

    Week 10B - Older C Style Strings (Char Arrays)

    A Short Intro to Git and GitHub