I have a class with this constructor:
Dfa(const int n_state, const int dim_alf, const string *alf, const int s_state, const int** tt_copy );
I try to create a dfa object like this:
const string alph[3] = {"a","b","c"};
const int ttable[5][4] = {1, 2, 4, 0, 3, 4, 1, 0, 4, 3, 2, 0, 4, 4, 4, 1, 4, 4, 4, 0};
Dfa reference_Tomita15 = new Dfa(5,3,alph,0,ttable);
This code gives me the error:
candidate constructor not viable: no
known conversion from 'const int [5][4]' to 'const int **' for 5th argument
What am I doing wrong? Thank you all for the attention