我会做这个函数是什么函数原型? [英] What Function Prototype Would I Make for this Function?
本文介绍了我会做这个函数是什么函数原型?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
int myFunc(int a, int b, int c, int d[][c]) {
//code
}
我试过这样:
int myFunc(int, int, int, int *);
和这样的:
int myFunc(int, int, int, int *[int]);
和这样的:
int myFunc(int, int, int, int **);
但他们都不工作。我想我有麻烦牵制的最后一个参数的类型。任何帮助将大大AP preciated。
But none of them seem to work. I think I'm having trouble pinning down the last parameter's type. Any help would be greatly appreciated.
推荐答案
现在试试这个
int myFunc(int a, int b, int c, int (*)[c]);
这篇关于我会做这个函数是什么函数原型?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文