Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Exemple de Tableau pointu multidimensionel

ArrayList, Array, HashTable, BitArray
{filelink=18431}

using System;
 
public class TableauPointu
{
 
    public static void Main()
    {
        int[][] matrice = {new int[5], new int[4], new int[2] };
        matrice[0][3] = 4;
        matrice[1][1] = 8;
        matrice[2][0] = 5;
 
        for (int i = 0; i < matrice.Length; i++)
        {
            for (int j = 0; j < matrice[i].Length; j++)
            {
                Console.WriteLine("matrice[{0}, {1}] = {2}", i, j, matrice[i][j]);
            }
        }
    }
}

No comments yet.

Leave a Comment