Wiki/Code/CPP/CPP-Basics.md
2023-12-20 16:30:40 +01:00

13 lines
281 B
Markdown

# Structure of a Program
Every C++ program must have a function named **main** (all lower case letters). When the program is run, the statements inside of _main_ are executed in sequential order.
```
#include <iostream>
int main()
{
std::cout << "Hello World!";
return 0;
}
```