CPSC 421-010 Object-Oriented Programming Spring 2026

Exercise 45: Member Initialization Lists Posted: Mar 03

The GitHub Classroom link is in Brightspace.

Normally, each these programs would each be in a separate Git repository. We only have them in one repository as separate repos would required four separate invitations.

Fix the code with the following problems in the following order:

  1. Sensor - compiler error
  2. Bank - compiler error
  3. Temperatures - compiler error
  4. Image - compiler error
  5. Image - implement @TODO

Do not:

Perform each change in a separate commit

Note that the Bank problem is really a compiler warning, not a compiler error. However, it is more complicated than that. While clang issues a warning, gcc does not. Here is the clang warning:

You will want to compile with both gcc and clang. See the Guide: Compilers for instructions.