Skip to content

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.

  1. Hello, C++35 min · Read, predict and practice
  2. Names and Initialized Values35 min · Read, predict and practice
  3. Text and Arithmetic35 min · Read, predict and practice
  4. Checkpoint: Your First Study Plan35 min · Independent checkpoint

Day 2 · About 140 minutes

Decisions and Repetition

Classify tasks and calculate progress with bounded loops.

  1. Choose a Branch35 min · Read, predict and practice
  2. Validate a Range35 min · Read, predict and practice
  3. Repeat with a Loop35 min · Read, predict and practice
  4. 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.

  1. Name a Useful Calculation35 min · Read, predict and practice
  2. Copies and References35 min · Read, predict and practice
  3. Check a Contract35 min · Read, predict and practice
  4. Checkpoint: Tested Progress35 min · Independent checkpoint

Day 4 · About 140 minutes

Strings and Collections

Store and summarize a changing collection of tasks.

  1. Store a Collection with vector35 min · Read, predict and practice
  2. Inspect and Change Text35 min · Read, predict and practice
  3. Read Collections by const Reference35 min · Read, predict and practice
  4. Checkpoint: Summarize Durations35 min · Independent checkpoint

Day 5 · About 140 minutes

Records and Ownership

Model tasks and distinguish copying from modifying an original.

  1. A Record for Each Task35 min · Read, predict and practice
  2. Copies and the Original35 min · Read, predict and practice
  3. Ownership and Automatic Cleanup35 min · Read, predict and practice
  4. Checkpoint: Planned and Completed35 min · Independent checkpoint

Day 6 · About 155 minutes

Input and Organization

Validate prefilled input and connect a multi-file program.

  1. Read Whole Lines35 min · Read, predict and practice
  2. Parse Without Exceptions40 min · Read, predict and practice
  3. Read a Task Record40 min · Read, predict and practice
  4. 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.

  1. The Study Planner Brief25 min · Read, predict and practice
  2. Assemble the Study Planner30 min · Read, predict and practice
  3. Test the Planner’s Promises30 min · Read, predict and practice
  4. Extend and Download Your Planner40 min · Read, predict and practice
  5. On Your Own: A Reading Planner60 min · Independent checkpoint
  6. Come Back Later30 min · Extra delayed review