cours:bat4:exemple_tableau_en_chaine_caracteres
using System;
class Program
{
static void Main()
{
// 15 character array.
char[] c = new char[15];
c[0] = 'O';
c[1] = 'n';
c[2] = 'l';
c[3] = 'y';
c[4] = ' ';
c[5] = 'T';
c[6] = 'h';
c[7] = 'e';
c[8] = ' ';
c[9] = 'L';
c[10] = 'o';
c[11] = 'n';
c[12] = 'e';
c[13] = 'l';
c[14] = 'y';
//15 character string.
string s = new string(c);
Console.WriteLine(s);
}
}
cours/bat4/exemple_tableau_en_chaine_caracteres.txt · Dernière modification : 2014/11/26 16:04 de tigli