hi,
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.
plz help.
code is as follows :
int rowval = x->getrow();
int colval = x->getcol();
rowval+=1;
colval+=1;
float axisval [ rowval ] [colval] ; // error point