Bonjour,
j'ai (encore) un petit souci. j'ai une matrice et je cherche à déterminer le maximum et le minimum de chaque colonne. le problème est que le bon résultat n'apparaît pas systématiquement pr chacune des colonnes. si vous pouviez me dire ce qui cloche,svp.
Function min_max_colonne(T, n, p As Integer) As Integer
Dim i, j As Integer
Dim min, max As Integer
min = T(1, 1)
max = T(1, 1)
For j = 1 To p
For i = 1 To n
If T(i, j) < min Then
min = T(i, j)
End If
If T(i, j) > max Then
max = T(i, j)
End If
Next i
Next j
End Function
Configuration: Windows Vista
Firefox 3.0.4