C++ (Qt)QList<int> intList;.......................int max = intList.first(); for (int i = 1; i < intList.size(); i++) if (max < intList.at(i)) max = intList.at(i);
C++ (Qt)QList<int> intList;.......................int max = intList.first();for( QList<int>::iterator i = intList.begin(); i != intList.end(); i++) if( max < *i) max = *i;
C++ (Qt)QList<int> intList;............................int max = intList.first();foreach ( int temp, intList) if( max < temp) max = temp;
C++ (Qt)QList<int> intList;.......................int max = intList.first();for( QList<int>::iterator i = intList.begin(), j = intList.end(); i != j; i++) if( max < *i) max = *i;