Re: Doubt - Static multidimension arrays

2016-01-18 Thread albert00 via Digitalmars-d-learn
On Tuesday, 19 January 2016 at 04:50:18 UTC, tsbockman wrote: On Tuesday, 19 January 2016 at 03:20:30 UTC, albert00 wrote: [...] ... what you're making is an array *of arrays*: Maybe I was misunderstood, because in fact that is what I was making an array of arrays, but my problem in fact wa

Re: Doubt - Static multidimension arrays

2016-01-18 Thread Albert00 via Digitalmars-d-learn
On Tuesday, 19 January 2016 at 05:32:07 UTC, Ali Çehreli wrote: Ali, look what you said: For example, the following is a row with two columns: int[2] Then you said: So, in order to get 1 row of 2 columns, you would write int[2][1] So the first pair of square-brackets is the colu

Re: Doubt - Static multidimension arrays

2016-01-18 Thread albert00 via Digitalmars-d-learn
Well maybe it was my fault, but anyway, here's a small example of what I was working on: void main(){ // Array 1 int[2][2] arr1; arr1[0][0] = 1; arr1[0][1] = 2; arr1[1][0] = 3; arr1[1][1] = 4; // Array 2 int[1][2] arr2;

Re: Doubt - Static multidimension arrays

2016-01-18 Thread albert00 via Digitalmars-d-learn
On Tuesday, 19 January 2016 at 02:54:03 UTC, cym13 wrote: int[2][5] arr; ? How is that not rectangular? It's sounds like you're confusing it with "square". Ow my problem is: int[2][2] arr; // This works int[2][5] arr; // This not working And I'd like to create the former.