A special function called main is the starting point of execution for all C and C++ programs.
If you are writing code that adheres to the Unicode programming model, you can use the wide-character version of main, wmain.
You can also use _tmain, which is defined in TCHAR.h. _tmain will resolve to main unless _UNICODE is defined, in which case _tmain will resolve to wmain.
int main( int argc[ , char *argv[ ] [, char *envp[ ] ] ] );
int wmain( int argc[ , wchar_t *argv[ ] [, wchar_t *envp[ ] ] ] );