parent
2a698e94bc
commit
38f86f0914
@ -1,6 +1,21 @@
|
||||
#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;
|
||||
}
|
Loading…
Reference in new issue