gpt4 book ai didi

c - 没有 main() 的程序

转载 作者:行者123 更新时间:2023-11-30 20:41:52 26 4
gpt4 key购买 nike

Possible Duplicate:
C program without main function ?

我们可以写一个没有 main() 的 C 程序吗?哪个可以运行并执行?

请回复...

最佳答案

不,你不能。您可以编写一个将在另一个程序中使用的库。但一切都必须有一个开始,而'main'是C程序的开始......

(在 Windows 上,Win32 API 指定 WinMain,但它是同一件事,只是名称不同。)

关于c - 没有 main() 的程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3864135/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com