C++ playground

#include <iostream>
#include <string>

void greet(const std::string& name) {
    std::cout << "Hello, " << name << "!" << std::endl;
}

int main() {
    greet("World");
}

C++ is a general-purpose programming language that began as an extension of C, but later acquired object-oriented, generic, and functional features.

⛫ homepage • αω tutorial • ⚘ community

Sandbox details

C++ version:        23
sandbox engine:     codapi
sandbox name:       cpp
allowed commands:   run
in-browser:         ✘

Usage example:

```cpp
#include <iostream>

int main() {
    std::cout << "Hello, World!";
}
```

<codapi-snippet sandbox="cpp" editor="basic">
</codapi-snippet>

Documentation