{filelink=18431}
using System;
public class TableauPointu
{
public static void Main()
{
int[][] matrice = {new int[5], new int[4], new int[2]
|
Liste et Collection
Gestion des exceptions mémoires
{filelink=18433}
using System;
class ExceptionTab
{
public static void Main()
{
int[] tabGrand;
try
{
tabGrand = n
|
Exemple d’utilisation des méthodes et propriétés ‘ArrayList’
{filelink=18412}
using System;
using System.Collections;
public class ExempleArrayList
{
// Cette méthode affiche le contenu d'ArrayList passée en par
|
Gestion d’exception ‘IndexOutOfRangeException’
{filelink=18434}
using System;
class ExException
{
public static void Main()
{
try
{
int [] tableauTest = new int [10];
|
Exemple d’utilisation des méthodes et des propriétés de la classe ‘Array’
{filelink=18414}
using System;
public class ExempleArray
{
public static void Main()
{
//Tableu de int
int[] tableauInt = {20,2,15,1,3,8,4,5,7,12,
|
Trier un tableau
{filelink=18435}
using System;
public class ExempleMethTableau
{
static public void Main ()
{
Random rand = new Rand
|
Exemple d’utilisation des méthodes et des propriétés de la classe ‘SortedList’
{filelink=18415}
using System;
using System.Collections;
public class ExempleSortedList
{
public static void Main()
{
// créer un objet 'SortedList'
|
Exemple de tri avec ‘Array.Sort()’ et recherche avec ‘indexOf’
{filelink=18436}
using System;
public class TriEtRecherche
{
public static void Main()
{
int[] tableauTest = {5, 1, 10, 33, 100, 4};
|
Exemple de Tableau Rectangulaire à trois dimension en CSharp
{filelink=18416}
using System;
public class ExempleTableauRectang
{
public static void Main()
{
const int ligne = 12;
const int colonne = 12;
s
|
Calculer la moyenne d’un tableau
{filelink=18437}
using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
public static class Calcultableau
{
public static
|