Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int image_aux(Lien l, int x)
- {
- if (l->x != x) image_aux(l->suiv,x);
- return l->y;
- }
- int image(Appli app, int x)
- {
- if(!element(app->A, x))
- {
- fprintf(stderr,"%d ne fait pas partie de l'ensemble de départ.", x);
- exit(1);
- }
- if (app->l->x == x)
- {
- printf("L'image de %d est %d\n", x, app->l->y);
- }
- else
- {
- image_aux(app->l->suiv, x);
- }
- return app->l->y;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement