我的任务是创建带有四个参数的函数 funCall :
- 存储数字对的二维整数数组的指针
- 变量 int 维护二维数组中数字的数量
- 指向函数指针表的指针
- int 变量存储有关函数指针数量的信息
我在想这样的事情:
typedef int(*funPtr)(int, int);
funPtr arrayOfFuncPtrs[];
void funCall( *int[][]k, int a, *funPtr z, int b);
{
}
最佳答案
typedef int(*funPtr)(int, int);
void funCall( int** array_2d, int num_of_nums, funPtr* fn_ptr_array, num_of_fn_ptrs)
{
}
像这样吗?
关于c++ - 函数的复杂参数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2717046/