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:
It is not letting me saying that expression must have a constant value.Code:
cin >> x;
cin >> n;
How should I do it?
Thank you very much