gpt4 book ai didi

c - 将 'Instruction' 传递给不兼容类型 'int' 的参数

转载 作者:行者123 更新时间:2023-11-30 20:35:18 25 4
gpt4 key购买 nike

我正在研究名为的函数

void print_instruction(Instruction instr);

该函数传递一个 Instruction 结构,如上所述,该结构具有草莓挞硬件指令组件的字段,并且它应该在单个输出行上打印硬件指令组件。但是当我运行代码时,它显示错误“将‘指令’传递给不兼容类型‘int’的参数”。我无法找出错误。谁能帮我吗?

最佳答案

int field0(Instruction instruction)
/* ^^^^^^^^^^^ */

同样,您想要传递指令的任何地方。

关于c - 将 'Instruction' 传递给不兼容类型 'int' 的参数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39837472/

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