Skip to content

Hello, World!

Read · 1 of 5

A program is a list of instructions

The computer follows them one at a time, top to bottom. Here's the smallest useful C++ program: it prints one line.

1#include <iostream>
2using namespace std;
3
4int main() {
5 cout << "Hello, World!" << endl;
6 return 0;
7}