Hello, guys.
This is the fragment of my program. I can't initialize the dynamic two-dimensional array. The compiler says to me that 'y' cannot appear in a constant - expression. But I need that both x and y to be dynamic. How can I fix that?
`
float a;
int x, y, uSize;
do
{
cout << "Enter the size of matrix " << endl;
cin >> uSize;
}
while (uSize > 0);
x = y = uSize;
float *userMatrix = new float[x][y];
`
Thanks for your time!