|
|
@ -61,7 +61,7 @@ void afficherPlace(MaillonDept m)
|
|
|
|
printf("\nPour ce département il y a %d places en 1ère année \n\n",m.nbP);
|
|
|
|
printf("\nPour ce département il y a %d places en 1ère année \n\n",m.nbP);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
//################## fonctions insertion #########################
|
|
|
|
//################## fonctions insertion #########################
|
|
|
|
int insererDept(VilleIUT v, MaillonDept m)
|
|
|
|
int insererDept(VilleIUT v, MaillonDept m)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -101,4 +101,26 @@ MaillonDept* rechercheDept(ListeDept lDept, int *trouve, char nom[])
|
|
|
|
*trouve=0;
|
|
|
|
*trouve=0;
|
|
|
|
return lDept;
|
|
|
|
return lDept;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int rechercheIUT(VilleIUT *tiut[], int tLog, char ville[], int *trouve)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
int inf,sup,t;
|
|
|
|
|
|
|
|
inf=0;
|
|
|
|
|
|
|
|
sup=tLog-1;
|
|
|
|
|
|
|
|
while(inf<=sup)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
t=(inf+sup)/2;
|
|
|
|
|
|
|
|
if(strcmp(ville,tiut[t]->nom)==0)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
*trouve=1;
|
|
|
|
|
|
|
|
return t;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if(strcmp(ville,tiut[t]->nom)<0)
|
|
|
|
|
|
|
|
sup=t-1;
|
|
|
|
|
|
|
|
else inf=t+1;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
*trouve=0;
|
|
|
|
|
|
|
|
return inf;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|