C++ 23 · Language basics

Hello world

The smallest C++ program, printing a line with iostream.

#include <iostream>

int main() {
    std::cout << "Hello, world!\n";
}

Official C++ 23 documentation

More language basics commands

All language basics commands · C++ 23 cheatsheet

Was this page helpful?