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.
- When a Record Needs Rules35 min · Read, predict and practice
- Private State and const Methods35 min · Read, predict and practice
- Validated Creation with optional35 min · Read, predict and practice
- 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.
- Identity Is Not Position35 min · Read, predict and practice
- Lookup with map35 min · Read, predict and practice
- Name States with enum class35 min · Read, predict and practice
- Checkpoint: Update by ID35 min · Independent checkpoint
Day 3 · About 140 minutes
Algorithms and Lambdas
Filter and sort readable reports with standard algorithms.
- Algorithms Operate on Ranges35 min · Read, predict and practice
- Predicates and Captures35 min · Read, predict and practice
- Deterministic Sorting35 min · Read, predict and practice
- 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.
- Absence and Invalid Requests35 min · Read, predict and practice
- Return a Useful Result35 min · Read, predict and practice
- Validate Before Committing35 min · Read, predict and practice
- 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.
- Let Value Members Own Resources40 min · Read, predict and practice
- Move Values Deliberately40 min · Read, predict and practice
- Borrow Text with string_view40 min · Read, predict and practice
- 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.
- One Useful Function Template35 min · Read, predict and practice
- Test the Callable Contract35 min · Read, predict and practice
- Canonical Import and Export35 min · Read, predict and practice
- 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.
- The Task Tracker Brief25 min · Read, predict and practice
- Assemble the Task Tracker30 min · Read, predict and practice
- Test the Tracker’s Guarantees30 min · Read, predict and practice
- Extend and Download the Tracker30 min · Read, predict and practice
- On Your Own: An Inventory Tracker60 min · Independent checkpoint
- Come Back Later30 min · Extra delayed review