1
What would be the best way to create a dynamic square matrix ?
An array that increases row and column as elements appear to be inserted into the matrix
I found some comments on the internet saying that the best way to do this would be to create lists
List<List<int>> matriz= new List<List<int>>();
I’m having trouble understanding how to fill the matrix.
Estou com dificuldades para entender.? What the difficulties! what you did apparently gives to make an array of any size (row and columns) only that control and via code. I was in doubt of a scenario?– novic
@Virgilionovic, sorry for the lack of information, my difficulty is in filling this matrix
– Gabriel Silva
I wanted to help you, but there’s no way. but, I will leave a link https://dotnetfiddle.net/HRkGQ is a 4 x 4 matrix but, I know it is! and I know I programmed so, this list can increase both for column and row ... the control is done via code
– novic
Thank you so much anyway
– Gabriel Silva
If you doubt me, ask me there
– novic