摘自:
ISO/IEC 14882:2003
An implementation shall not predefine the main function.
It shall have a return type of type int, but otherwise its type is implementation-defined.
3.6.1 Main function
[basic.start.main]
An implementation shall not predefine the main function.This function shall not be overloaded. It shall have a return type of type int,but otherwise its type is implementation-defined.All implementations shall allow both of the following definitions of main:
int main() { /* ... */ }
and
int main(int argc, char* argv[]) { /* ... */ }
以上原文