Each program file must contain a basic main() function.

This function is called when the program starts. Like all C++ functions, its contents are enclosed in curly brackets.

General structure


int main()

{

    // function's body enclosed in curly brackets

        return 0;

}


To be able to get data from outside the program, there are two options - getting the arguments with which the program is running (run_cpp("get_args",...)) and getting the values of external variables initiated by other programs (var_extern_get).