You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
382 B

#include"Ssae.h"
int main(void){
VilleIUT* tab[20];
VilleIUT a,b,c;
char test[20];
int trouve = 0, pos;
strcpy(a.nom,"Clermont");
strcpy(b.nom,"Lyon");
strcpy(c.nom,"Paris");
strcpy(test,"Lyon");
a.lDept = NULL;
b.lDept = NULL;
c.lDept = NULL;
tab[0] = &a;
tab[1] = &b;
tab[2] = &c;
pos = rechercheIUT(tab,3,test,&trouve);
printf("%d %d\n",pos,trouve);
return 0;
}