krysis
Messages postés14Date d'inscriptionjeudi 10 avril 2008StatutMembreDernière intervention 3 avril 2010
-
3 avril 2010 à 17:58
nhervagault
Messages postés6063Date d'inscriptiondimanche 13 avril 2003StatutMembreDernière intervention15 juillet 2011
-
3 avril 2010 à 18:26
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace TPTableau
{
class Program
{
static void Main(string[] args)
{
double max = 5;
string[] clients = new string[] { "jean", "jaques", "martin", "arnaud", "phillipe" };
while ((i < max) && (clients[i] < nomChercher))
{
i = i++;
}
if (clients[i] = nomChercher)
{
Console.WriteLine(nomChercher, " est client");
}
else
{
Console.WriteLine(nomChercher, " n'est pas client");
}
Console.ReadLine();
}
}
}
J'ai 2 erreurs sur Visual basic :
Erreur 1 L'opérateur '<' ne peut pas être appliqué aux opérandes de type 'string' et 'string' C:\Users\Fruit\Desktop\Gauche\Exercice Tableau 1er Avril\TPTableau\TPTableau\Program.cs 25 34 TPTableau
Erreur 2 Impossible de convertir implicitement le type 'string' en 'bool' C:\Users\Fruit\Desktop\Gauche\Exercice Tableau 1er Avril\TPTableau\TPTableau\Program.cs 29 17 TPTableau
Je cherche depuis un moment mais je suis perdu alors me voici xD merci