HomeKnowledge BaseGetting started
Learning path · Beginners

Block-based C++ for beginners: how to start

You do not have to memorise syntax before writing your first real C++ program. Here is a first-session plan that starts with blocks and ends with code you can read.

7 min read C++ · visual programming · getting started for parents, teachers and self-learners

Why blocks first

A beginner writing C++ by hand juggles two problems at once: what the program should do, and how to express it without a syntax error. Blocks remove the second problem for a while, so all attention goes to logic — sequence, loops, conditions, functions, arrays.

The code is not a simulation: every block maps to real C++ and the desktop build compiles and runs it with your local g++.

Your first session (30–45 minutes)

  1. Install and open. Get KuaiJiZi C++ Tutor from Microsoft Store and open the free-build workspace.
  2. Make the program say something. Drag an output block, type a message, run it. Understanding “I built → it ran” matters more than the syntax.
  3. Add a variable. Store a number, then print it. This is the idea of memory.
  4. Add a loop. Print the same thing five times — but write the loop, not five blocks.
  5. Add a condition. Print one message if a number is bigger than ten, another if it is not.
  6. Read the generated code. Look at the code pane and match each block to its line. Do not try to memorise it — just see the correspondence.

That is already a complete, runnable program using variables, loops and conditions. Most beginners are surprised how quickly this happens.

What you are really learning

  • Decomposition — turning “make a calculator” into small steps.
  • Sequence — order matters; computers follow instructions literally.
  • Repetition — when to use a loop instead of copying.
  • Conditional logic — “if this, then that, otherwise…”
  • Abstraction — wrapping a repeated job into a function.

These transfer to every language. Learning them with C++ as the vehicle means the syntax you meet later is already familiar from the generated code.

Moving from blocks to hand-written code

  1. Watch the shape — build and run without reading code.
  2. Read the mapping — see which block produces which line, and predict the output before running.
  3. Drop the blocks — rewrite the same logic in the code editor page; switch back to compare whenever you get stuck.

The full explanation, including block search and JSON snapshots, is in How do blocks become real C++ code?

Keep a “passes the checker” habit: use practice projects from the project library so every exercise is automatically compared against the expected output.

FAQ

Is this real C++ or a simplified language?

Real C++. Blocks generate standard C++ source code, which is then compiled and executed like any other program.

Do I need to install a compiler first?

The app detects a local compiler automatically; if none is found it can use a remote compile service, so you can start immediately. See installing g++ on Windows when you want local builds.

What age or level is it for?

It suits anyone who can follow “first do A, then B; if X, do C”. No prior coding experience is required, and adults starting from zero use it too.

Should a beginner learn Python instead?

Both are fine. If the goal is deeper algorithmic work, C++ is the common choice; blocks let you start that path without the initial syntax barrier.

Ready to run your first program?

Install from Microsoft Store, or read how the three compile & run modes work.

Products & download Compile & run modes