gpt4 book ai didi

c - 参数名省略错误?

转载 作者:太空狗 更新时间:2023-10-29 17:05:45 25 4
gpt4 key购买 nike

尝试调用方法时出现错误:

int box(int rows, int cols, int [rows][cols])

从使用此调用的主要方法:

box(arrayDimensions, arrayDimensions, array);

但我不确定是什么问题。

谢谢。

最佳答案

int box(int rows, int cols, int [rows][cols])

需要

int box(int rows, int cols, int something[rows][cols])

关于c - 参数名省略错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12950694/

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