13 lines
281 B
Markdown
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;
|
|
}
|
|
```
|