I am trying to declare a 2D array in a member function in C++ , where its size changes everytime i run the program.
but it is giving error like " a constant expression is required "
but i cannot make the size constant, as i need to change the size everytime i run the program.
code is as follows :
int rowval = x->getrow();
int colval = x->getcol();
float axisval [ rowval ] [colval] ; // error point