Chapter 22: Irre.g.ular Arrangements (Jagged)
So far, lists and tables are known as rectangular arrays or arrays. However, microsoft.net technology offers a new type of arrangement called irre.g.ular arrangements (jagged).
This type of arrangement is an arrangement of arrangements, but each arrangement can be of different sizes, that is sometimes in special problems a matrix, table, table or concentrate can be occupied where the size of each line is DIFFERENT.
Observe the changes in the declaration as a normal table type arrangement, that is, they are now two square brackets and do not have a comma inside them.
To process the elements of an irre.g.ular arrangement, two brackets should now be handled, not one with two indexes as was done in rectangular tables.
The poor people of c ++ use this method to process tables, what a surprise awaits them with C#.
In order to carry out processes, as many cycles for (columns) should be used as lines have the arrangement, and the line can be handled as constant in each cycle, as the example shows;
Observe how elements are now manipulated in the format table [reng] [col].
Suggested problems:
1.- build a couple of irre.g.ular tables, with some processes, one of them in aspx and another in cs