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.

24 lines
423 B

#include "Msae.h"
int main(void)
{
VilleIUT* tiut[20];
VilleIUT a,b,c,d;
char test[20];
int trouve, pos;
strcpy(a.nom,"Clermont");
strcpy(b.nom,"Lyon");
strcpy(c.nom,"Paris");
a.lDept = NULL;
b.lDept = NULL;
c.lDept = NULL;
tiut[0] = &a;
tiut[1] = &b;
tiut[2] = &c;
printf("Quel IUT cherchez-vous?\t");
scanf("%s",test);
pos = rechercheIUT(tiut,4,test,&trouve);
printf("%d %d\n",pos,trouve);
return 0;
}