C++ Class Example

C / C++ (standalone) Open Kit Simulator ↗ All recipes
Tip: Ctrl+↵ to run
Standalone C/C++ compiles to native code — not runnable in the browser. Click Download .cpp, then on your Pi / Mac / Linux box run: g++ -std=c++17 -o app filename.cpp && ./app

About this recipe

include <iostream>

Libraries / imports

iostream string

Hardware / pins

No physical pins or components referenced

Key API calls

std::cout() main()

How to run

Download .cpp → compile with g++ → run locally.
Editor cpp edits auto-save
Output ready
Output will appear here after you click Run.