Name

Max —

Synopsis

int Max();

Description

Locates the element with the maximum value in the array

Returns

Th element index (not value) containig the maximum

See Also

method.array.Min

Note

The "maximum value" is calculated invoking the class "greater" operator. When creating a class make sure to implement basic operators (=, <, >, <=, >= etc) so that this and the Min() method can be applied.