gpt4 book ai didi

c - 当我收到此消息时如何检测我的编码错误

转载 作者:行者123 更新时间:2023-11-30 21:48:47 24 4
gpt4 key购买 nike

代码链接:http://gyazo.com/f0f4004eb606607ecaa021b5e22e6e06当我运行代码时出现以下错误。

"error: expected identifieror '(' "

我使用 gedit 来编写这段代码。我会感谢一些支持者;)

提前致谢!,维森特

最佳答案

int main(void); 声明中不应有分号。

尝试将第 4 行替换为:int main(void)

另外,请阅读 C 函数声明语法 https://msdn.microsoft.com/en-us/library/c4d5ssht.aspx .

关于c - 当我收到此消息时如何检测我的编码错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31728453/

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