开发者

c++ language related to functions

开发者 https://www.devze.com 2022-12-09 18:01 出处:网络
If void main is a user defined function the开发者_开发技巧n can we make any change in this user defined function. For eg: can we write/use void main1() in place of main()?No. The program loader looks

If void main is a user defined function the开发者_开发技巧n can we make any change in this user defined function. For eg: can we write/use void main1() in place of main()?


No. The program loader looks for main() as the starting point of a console application (WinMain() for Windows apps).


Yes. Just call main1() inside main().

0

精彩评论

暂无评论...
验证码 换一张
取 消