Código:
Donde matX y matY son variables int.mat = new int[matX][matY];
Mi pregunta es, por que no se puede hacer esto ? si con una matriz unidimensional funciona perfectamente
Código:
Gracias. ||=== Matrices, Debug ===| /home/neandertal/Documents/Matrices/main.cpp||In function ‘int main()’:| /home/neandertal/Documents/Matrices/main.cpp|11|error: ‘matY’ cannot appear in a constant-expression| ||=== Build finished: 1 errors, 0 warnings ===|