C++拾遗(一)关于main()函数

时间:2024-01-05 10:11:26

C:省略返回值默认为int,()中空着不等于void

C++:不能省略返回值,()中空着等效于(void)

常规独立程序必须包含一个main(),DLL可以不需要main()。

相关文章