Hello, this is my code, the problem is in the first function as it always prints me right the first return ( so 5 if its cofe and if its max age it gives me 65) but i want both while it only prints me either 5, 8 or 65,8 depending on which return i put first.
I guess the 8 is the lenght of the tab ?
Also i can't get the sorting function to swap me everything right as it doesn't switch the 29 with the 27 :(. I need your help thanks in advance.
Execution:
La consommation maximale de cafe: 5 et 8 <--- here i should get 5 et 65 but when i switch it gives me 65 and 8, never both good answers
Contenu de 3 tableaux avant tri :
Indice age nbCafe Poste
0) 19 1 Programmeur
-
24 4 Analyste -
25 3 Programmeur -
29 3 Programmeur -
27 5 Operateur <---- here is the problem!!! -
30 0 Analyste -
56 0 Operateur -
65 3 Programmeur
Program is in the txt file.