I'm solving an algorithm problem using C++.
I want to put the pointer of 2-dimensional array that having different sizes of each dimension by init input dynamically.
What I coded as a function is below: the contents(the function of function) mean nothing.
int cal(int **arr){
int test = arr[0][0];
return 0;
}
And the result of this function
int arrayD[totalGroupCount][totalBeadCount];
int a = cal(arrayD);
It just says "No Matching function call for 'cal'"
I did declare the function 'cal'.
And I did it a lot with different symbol
int cal(int *arr[]){
int test = arr[0][0];
return 0;
}
But it says me identically.
I already searched for this question but answers I got make just the same error(I totally don't understand how they make it)