// Uniquement en C++ #include using namespace std; int max(int a, int b) { return a>b ? a : b; } int max(const int* tab, int nbElems) { int maxVal = tab[0]; // On suppose qu'il y a au moins 1 element ! for(int i = 1; i maxVal) maxVal=tab[i]; } return maxVal; } // int max(const Liste l) { ... } double max(double a, double b) { return a>b ? a : b; } int main(void) { int t[]={22,12,13,23,2}; cout << "max(8,7)=" << max(8,7) << endl; cout << "max({22,12,13,23,2},5)=" << max(t,5) << endl; cout << "max(8.2,7.1)=" << max(8.2,7.1) << endl; return 0; }