gpt4 book ai didi

c++ - 为什么 C++ 中的 main() 不能内联?

转载 作者:IT老高 更新时间:2023-10-28 12:10:23 26 4
gpt4 key购买 nike

我在阅读 C++ 常见问题解答时注意到一句话。

main() cannot be inline.

这是为什么?

最佳答案

在 C++ 中,在代码中调用 main 函数是不合法的,因此不可能内联它。

关于c++ - 为什么 C++ 中的 main() 不能内联?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6981104/

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