voici un code ci dessous permet de faire la concaténation entre deux tableaux de type char:
static void Main(string[] args)
{
string[] one = new string[] { "a", "b" };
string[] two = new string[] { "c", "d" };
string[] three;
three = new string[one.Length + two.Length];
int idx = 0;
for (int i = 0; i < one.Length; i++)
three[idx++] = one[i];
for (int j = 0; j < two.Length; j++)
three[idx++] = two[j];
for (int i=0 ; i < three.Length ; i++)
{
Console .WriteLine (three [i]);
}
}
je cherche à modifier ce code pour faire la concaténation entre deux matrices mais j'ai pas réussi , et t 'il possible cette tache prière aidez moi SVP .
merci
A voir également:
Incompatible operand types char and string
Incompatible operand types char and string java - Meilleures réponses