I have a Parent class that receives two mandatory parameters: the number of rows and columns. And I want to reuse an object and change the number of rows and columns, something like this:
for(i=1; i<=10; i++){
Matriz M(i, i);
//Hacer algo con la matriz
}
Is there any way I can do it? I've searched for it with pointers and using new and delete but I'm not clear on how to pass the mandatory arguments to each array.