C++ / Beginner · Free public pilot
Learn C++ in 7 Days
Build a foundation and a working study planner. Read, predict, run, change and explain each program.
Start your first lesson →Start from zero. Take your own time.
No prior programming, 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.
We introduce std::string and std::vector early, then value semantics and automatic cleanup. C is not a prerequisite. Inheritance, manual new/delete and custom templates are later topics. Exceptions and threads are not supported by this browser runtime; the course uses explicit success/failure results.
Ready for stronger types and reusable operations? Continue with C++ intermediate →
Day 1 · About 140 minutes
Your First C++ Programs
Print a named study plan and fix a compiler error.
- Hello, C++35 min · Read, predict and practice
- Names and Initialized Values35 min · Read, predict and practice
- Text and Arithmetic35 min · Read, predict and practice
- Checkpoint: Your First Study Plan35 min · Independent checkpoint
Day 2 · About 140 minutes
Decisions and Repetition
Classify tasks and calculate progress with bounded loops.
- Choose a Branch35 min · Read, predict and practice
- Validate a Range35 min · Read, predict and practice
- Repeat with a Loop35 min · Read, predict and practice
- Checkpoint: Reach a Goal35 min · Independent checkpoint
Day 3 · About 140 minutes
Functions and Checks
Write and test small functions with clear inputs and outputs.
- Name a Useful Calculation35 min · Read, predict and practice
- Copies and References35 min · Read, predict and practice
- Check a Contract35 min · Read, predict and practice
- Checkpoint: Tested Progress35 min · Independent checkpoint
Day 4 · About 140 minutes
Strings and Collections
Store and summarize a changing collection of tasks.
- Store a Collection with vector35 min · Read, predict and practice
- Inspect and Change Text35 min · Read, predict and practice
- Read Collections by const Reference35 min · Read, predict and practice
- Checkpoint: Summarize Durations35 min · Independent checkpoint
Day 5 · About 140 minutes
Records and Ownership
Model tasks and distinguish copying from modifying an original.
- A Record for Each Task35 min · Read, predict and practice
- Copies and the Original35 min · Read, predict and practice
- Ownership and Automatic Cleanup35 min · Read, predict and practice
- Checkpoint: Planned and Completed35 min · Independent checkpoint
Day 6 · About 155 minutes
Input and Organization
Validate prefilled input and connect a multi-file program.
- Read Whole Lines35 min · Read, predict and practice
- Parse Without Exceptions40 min · Read, predict and practice
- Read a Task Record40 min · Read, predict and practice
- Checkpoint: Organize Source Files40 min · Independent checkpoint
Day 7 · About 185 minutes
Finish Your Study Planner
Test, extend and download a working planner, then solve a fresh brief.
- The Study Planner Brief25 min · Read, predict and practice
- Assemble the Study Planner30 min · Read, predict and practice
- Test the Planner’s Promises30 min · Read, predict and practice
- Extend and Download Your Planner40 min · Read, predict and practice
- On Your Own: A Reading Planner60 min · Independent checkpoint
- Come Back Later30 min · Extra delayed review