Skip to content

C++ / Intermediate · Free public pilot

Intermediate C++ in 7 Days

Build a foundation and a reliable task tracker. Read, predict, run, change and explain each program.

Start your first lesson →

Build on C++ beginner. Take your own time.

Know strings, vectors, functions, references, records and basic stream parsing first. No C course, account or installation required. Allow about two and a half hours per day including practice, with On Your Own (about an hour) and the final review on Day 7 as extras; these are author estimates. Split days across sessions freely. Seven days builds a foundation, not mastery.

All 30 lessons are open as a pilot. C++20 compiles with real Clang in code-playpad. The first Run downloads about 30 MB, then caches the compiler. Input must be supplied before Run; this browser runtime offers stdin, stdout and stderr, not persistent files. Stop ends a long run.

Each day ends with independent practice. Hints offer an idea, then a first step, before a worked solution. Day 7 includes a downloadable project and optional local instructions. Completion is saved only in this browser. Return a few days later for the final review.

Learn classes with invariants, stable IDs, maps, algorithms, explicit results, borrowed views and one small function template. Build and test a multi-file task tracker. Exceptions and threads are not supported by this browser runtime; the course uses explicit success/failure results.

Comfortable with invariants and lifetime contracts? Continue with Advanced C++ →

Day 1 · About 140 minutes

Classes That Protect State

Create tasks whose public operations preserve their rules.

  1. When a Record Needs Rules35 min · Read, predict and practice
  2. Private State and const Methods35 min · Read, predict and practice
  3. Validated Creation with optional35 min · Read, predict and practice
  4. Checkpoint: A Valid Task Type35 min · Independent checkpoint

Day 2 · About 140 minutes

Identity and Collections

Find and update tasks by stable ID, independently of display order.

  1. Identity Is Not Position35 min · Read, predict and practice
  2. Lookup with map35 min · Read, predict and practice
  3. Name States with enum class35 min · Read, predict and practice
  4. Checkpoint: Update by ID35 min · Independent checkpoint

Day 3 · About 140 minutes

Algorithms and Lambdas

Filter and sort readable reports with standard algorithms.

  1. Algorithms Operate on Ranges35 min · Read, predict and practice
  2. Predicates and Captures35 min · Read, predict and practice
  3. Deterministic Sorting35 min · Read, predict and practice
  4. Checkpoint: A Filtered Report35 min · Independent checkpoint

Day 4 · About 145 minutes

Results and Validated Changes

Return useful failures and reject edits without partial changes.

  1. Absence and Invalid Requests35 min · Read, predict and practice
  2. Return a Useful Result35 min · Read, predict and practice
  3. Validate Before Committing35 min · Read, predict and practice
  4. Checkpoint: Rejected Changes Preserve State40 min · Independent checkpoint

Day 5 · About 160 minutes

Ownership, Copies and Borrowed Views

Choose owning values or borrowed access and explain lifetime risks.

  1. Let Value Members Own Resources40 min · Read, predict and practice
  2. Move Values Deliberately40 min · Read, predict and practice
  3. Borrow Text with string_view40 min · Read, predict and practice
  4. Checkpoint: Safe Lookup Results40 min · Independent checkpoint

Day 6 · About 145 minutes

Reusable Operations and Tests

Generalize one repeated operation and prove import/export contracts.

  1. One Useful Function Template35 min · Read, predict and practice
  2. Test the Callable Contract35 min · Read, predict and practice
  3. Canonical Import and Export35 min · Read, predict and practice
  4. Checkpoint: Tests That Detect Broken Promises40 min · Independent checkpoint

Day 7 · About 175 minutes

Ship the Task Tracker

Run, test, extend and download a task tracker, then solve a fresh brief.

  1. The Task Tracker Brief25 min · Read, predict and practice
  2. Assemble the Task Tracker30 min · Read, predict and practice
  3. Test the Tracker’s Guarantees30 min · Read, predict and practice
  4. Extend and Download the Tracker30 min · Read, predict and practice
  5. On Your Own: An Inventory Tracker60 min · Independent checkpoint
  6. Come Back Later30 min · Extra delayed review