Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void afficher_temps_equipes(const Competition* competition, int* cptEquipesInscrites) {
- int nbTours = 0;
- scanf("%d", &nbTours);
- for (int i = 0; i < *cptEquipesInscrites; i++) {
- Equipe e = competition->tableauEquipe[i];
- float maxTemps = 0;
- for (int j = 1; j < NBPATINEURSPAREQUIPES; j++) {
- Patineur p = e.data[j];
- int maxTemps = e.data[0].tableauMesure[0].temps;
- if (maxTemps < e.data[j].tableauMesure[nbTours - 1].temps) {
- maxTemps = e.data[j].tableauMesure[nbTours - 1].temps;
- }
- }
- printf("%s %.1f\n", e.pays, maxTemps);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement