C/C++: Fonction pour trouver la valeur maximale d’une matrice

Author:


Download

#include 

double maximum( int nombre_ligne, int nombre_colonne,
			   double matrice[][10] )
{
  double max = matrice[0][0];
  for ( int l = 0; l < nombre_ligne; ++l )
    for ( int c = 0; c < nombre_colonne; ++c )
      if ( max < matrice[l][c] )
        max = matrice[l][c];
  return max;
}

Leave a Reply

Your email address will not be published. Required fields are marked *