Wiki/Code/CPP/CPP-Basics.md

14 lines
281 B
Markdown
Raw Normal View History

2023-12-20 16:30:40 +01:00
# 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;
}
```