The preprocessor directive we load in Triple X is used to load the iostream library. This presumably allows us to use code more efficiently. We don’t need to write all the code for outputting a string to the terminal each time, we can just use the cout function included in the iostream library. The cout function will do all the hardwork and our code becomes one simple line in Triple X.
The main() function is the entry point for our Triple X program. Without this function our program does not compile and can not be run. The return statement returns the status of our application once it has been run, a return value of anything other than 0 would suggest an error had occurred within our program at runtime.
An expression is a line of code that is performing some computation such as a+b or printing something to the terminal. A declaration is where we initialise a variable, or constant, for example: int a=4. Both expressions and delcarations are defined as statements with the ; at the end of the line.