Advertisement
Guest User

Untitled

a guest
Oct 18th, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.65 KB | None | 0 0
  1. void afficher_temps_equipes(const Competition* competition, int* cptEquipesInscrites) {
  2.  
  3.     int nbTours = 0;
  4.     scanf("%d", &nbTours);
  5.  
  6.     for (int i = 0; i < *cptEquipesInscrites; i++) {
  7.         Equipe e = competition->tableauEquipe[i];
  8.         float maxTemps = 0;
  9.         for (int j = 1; j < NBPATINEURSPAREQUIPES; j++) {
  10.             Patineur p = e.data[j];
  11.             int maxTemps = e.data[0].tableauMesure[0].temps;
  12.             if (maxTemps < e.data[j].tableauMesure[nbTours - 1].temps) {
  13.                 maxTemps = e.data[j].tableauMesure[nbTours - 1].temps;
  14.             }
  15.         }
  16.         printf("%s %.1f\n", e.pays, maxTemps);
  17.     }
  18.  
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement