C++ · Intermediate level

Intermediate level · Module 6: Intermediate C++ Project · Lesson 3 of 3

Review and Presentation

Review code with a partner, finish the project and present it with a sanitizer-clean demonstration.

In this lesson you will

  • Review C++ code for correctness and modern style
  • Present the project and explain design decisions

Key concepts

code review checklistconst correctness reviewsanitizer runpresentation

The lesson

Review with a checklist: const correctness, references instead of copies, no raw new/delete, no warnings, clear names and checks for every rule. Comment on the code, not the person.

Fix the review findings, then build from a fresh clone and run the checks under sanitizers. A project that only builds on its author's machine is not finished.

Present the main flow, show an expired batch being refused, run the checks and explain one design decision — for example why Inventory does not know about files.

Step by step

  1. Swap projects and review using the checklist.
  2. Act on the findings.
  3. Build from a fresh clone and run under sanitizers.
  4. Rehearse a five-minute presentation.

Practice activity

Complete the review cycle and present the Pharmacy Stock Manager.

Expected result: The project builds from a clean clone, runs cleanly under sanitizers and is presented within the time limit.

Check your understanding

  1. Name three items on a C++ code-review checklist.

    Show answer

    For example const correctness, avoiding unnecessary copies and no raw new/delete.

  2. Why build from a fresh clone before presenting?

    Show answer

    To prove the project does not depend on files or settings only on the author's machine.

Taught live by an instructor — online or in person. Free course lessons are for self-study and do not lead to a certificate — see registration options.