http://www.cplusplus.com/reference/algorithm/max_element/
不谢
#include
using namespace std;
template
Comparable getMax(const vector
{
Comparable sum = array[0][0];
for(int i = 0; i < array.size(); i++){
for(int j = 0; j < array[i].size(); j++){
if(sum < array[i][j])
sum = array[i][j];
}
}
return sum;
}