Explaining the code

The include statement is used to include external code files in order to make our program and some expressions work.

Our main function encloses all of our program main code, without ir our program will not start.

Our expression statements are lines of code followed by a semicolon.

Our declaration statements declare statements such as our variables so our program recognizes our variables and give them values.

Our return statement checks that our program is working properly once it starts.

1 Like

The #include isn’t really for including external code. It’s a preprocessor directive that tells the compiler to look in the specified file for any definitions that may be needed such as the classes and their methods and properties.

I hope this helps.