no save
Assistance
Achat
News

Forum | programmation
[C] recherche chaine caractère
joana, le sam. 19 avr. 2008 à 17:44:15
bonjour,

j'avais essayer sans boucle aussi et ça donne le même résultat, il ne trouve pas le pays malgré qu'il y en a d'encoder.
il y a surement une erreur mais je n'arrive pas à la trouver...

short RechercheParNom (struct Pays*p) //par pays

{

int j,i;
short trouve=0;
char NomPays[30];


printf("Recherche d'un Pays\n");
printf("________________________\n\n");

printf("Entrez le nom a rechecher : ");
j=LireVChaine(NomPays,30);
Majuscule(&NomPays[0]);





if(strcmp(p->NomPays,NomPays)==0)
{
trouve=1;
}

if(j==30 && trouve==0)
j=0;

if (trouve==1)
{
AffichePays(p);
}
else
{
printf("\nLe Pays recherche n'a pu etre trouve");
}

return (j-1);
}
Précédentdaronmaster
avr. 08
daronmaster
avr. 08
Suivant
REPONSES
daronmaster
avr. 08
joana
avr. 08
daronmaster
avr. 08
joana
avr. 08
joana
avr. 08
daronmaster
avr. 08
joana
avr. 08
mype
avr. 08
daronmaster
avr. 08
Version Web
Réalisé par RedShift
no save