Introduction
The main function is where a C++ program starts running. It tells the computer what to do first.
When you want to create a program that runs from start to finish.
When you need a place to begin your instructions for the computer.
When you want to control the flow of your program from a single point.
When you want to return a status code to the system after your program finishes.