and i'm trying to code tetravex game but actually i'm stuck on an error "no instance of constructor matches the argument list"
so i would like to call my class constructor with multi-D array as followed
int main(){
int gri[3][3][4] =
{
{{8,5,9,4},{9,1,5,9},{6,9,6,6}},
{{7,4,6,1},{6,8,3,4},{1,1,9,0}},
{{9,6,0,4},{0,4,8,2},{5,9,1,8}}
};
tetravex t(&gri);
t.printBoard();
and my class constructor is:
tetravex::tetravex(int * gri[3][3][4]){
memcpy(&grille, &gri, sizeof(gri));
}
grille is multi-D array like "gri" declared in my class inside my header file, the error line is my constructor call when instantiating my class
tetravex t(&gri);
any help please !