Hello,

I am looking to create a 2D array of weights, however I need the dimentions to be specified at runtime. I've coded the following which is not working:

Code:
....
cin >> x;
cin >> n;
float weightTable[x][n];
It is not letting me saying that expression must have a constant value.

How should I do it?

Thank you very much