Functions: main()
Applies To: C++Builder 1 or higher
Category: C++ Language
- To specify the first line of your code, you have to use the main function. The first line of code in your main function is the first line to be executed.
-
- When you create a new console application, C++Builder inserts a default main function:
-
int main(int argc, char* argv[]) { return 0; }
|
-
- argc and argv contain information about the parameters passed to your application. argc specifies the number of arguments and argv
is an array of pointersto strings containing the full path of the application and the list of arguments passed to main.
C++Builder Developer's Network
Copyright © Yoto Yotov