All guided courses

Guided course

Learn C++ step by step

Write and run real C++ in your browser: values, decisions, loops and functions.

Your C++ code runs inside your browser tab. Nothing to install.

4
Topics
20
Lesson screens
8
Hands-on tasks

No account and no install needed for the first topic.

Level 1: Beginner: values, decisions, loops and functions

  1. 1. Values and variables

    Free to try

    Print things, and give values names so you can use them again.

    • Printing a value
    • Naming a value
    • Your turn: a variable · task
    • Working with numbers
    • Your turn: a calculation · task
  2. 2. Making decisions

    Free account

    Compare values and run different code depending on the answer.

    • Comparing values
    • if and else
    • Your turn: one decision · task
    • More than two cases
    • Your turn: three cases · task
  3. 3. Repeating with loops

    Free account

    Run the same code many times without writing it many times.

    • Counting with a loop
    • Your turn: counting · task
    • Building up a result
    • Repeating while something is true
    • Your turn: a total · task
  4. 4. Functions

    Free account

    Give a piece of code a name, hand it values, and get a result back.

    • Defining and calling a function
    • Giving a function values
    • Your turn: a function with a parameter · task
    • Getting a result back
    • Your turn: return a value · task

The level ends with a ten-question quiz. Score 70% to earn the level badge.

More levels for this course are being written.

How a guided course works

  • One screen at a time

    Each topic is a short run of screens. Read a little, then do it yourself in the editor beside the lesson.

  • Tasks that are checked

    Your answer is run and compared with a model answer, so you know it works, not just that it looks right.

  • A quiz opens the next level

    Ten questions at the end of a level. Score 70% and the next level opens. Miss it and you see which topics to review.

  • Your place is saved

    With a free account your progress, your answers and your badges are kept, on any device.

  • A tutor that stays private

    The optional AI tutor runs on your own computer through the free desktop app. Your code is not sent to us.