Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Exemple de Tableau Rectangulaire à trois dimension en CSharp

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

using System;
public class ExempleTableauRectang
{
 
  public static void Main()
  {
    const int ligne = 12;
    const int colonne = 12;
    string[,] mois = new string[ligne, colonne];
 
    mois[0, 0] = "Janvier"; mois[1, 0] = "31";
    mois[0, 1] = "fevrier"; mois[1, 1] = "28";
    mois[0, 2] = "Mars";    mois[1, 2] = "31";
    mois[0, 3] = "Avril";   mois[1, 3] = "30";
    mois[0, 4] = "Mai";     mois[1, 4] = "31";
    mois[0, 5] = "Juin";    mois[1, 5] = "30";
    mois[0, 6] = "Juillet"; mois[1, 6] = "31";
    mois[0, 7] = "Août";    mois[1, 7] = "31";
    mois[0, 8] = "Septembre"; mois[1, 8] = "30";
    mois[0, 9] = "Octobre"; mois[1, 9] = "31";
    mois[0, 10] = "Nomvembre"; mois[1, 10] = "31";
    mois[0, 11] = "Decembre"; mois[1, 11] = "31";
 
    for (int row = 0; row < ligne; row++)
    {
      for (int column = 0; column < colonne; column++)
      {
        Console.WriteLine("Mois[" + row + ", " + column + "] = " +
          mois[row, column]);
      }
    }
 
  }
 
}

No comments yet.

Leave a Comment