Re: maximum value of a vector

From: Marc Escalier <escalier_at_lal.in2p3.fr>
Date: Fri, 25 Jun 2010 23:43:45 +0200


Hi,

maybe try this :

std::max_element(myvector.begin(),myvector.end());



On Fri, 25 Jun 2010, Campa Romero, Julia Monica wrote:

>
> Hi rooters,
>
> I would like to know how to obtain the maximum value of a vector.
>
> Thanks,
>
> Julia
>
> ----------------------------
> Confidencialidad:
> Este mensaje y sus ficheros adjuntos se dirige exclusivamente a su destinatario y puede contener información privilegiada o confidencial. Si no es vd. el destinatario indicado, queda notificado de que la utilización, divulgación y/o copia sin autorización está prohibida en virtud de la legislación vigente. Si ha recibido este mensaje por error, le rogamos que nos lo comunique inmediatamente respondiendo al mensaje y proceda a su destrucción.
>
> Disclaimer:
> This message and its attached files is intended exclusively for its recipients and may contain confidential information. If you received this e-mail in error you are hereby notified that any dissemination, copy or disclosure of this communication is strictly prohibited and may be unlawful. In this case, please notify us by a reply and delete this email and its contents immediately.
> ----------------------------
>
>
Received on Fri Jun 25 2010 - 23:45:05 CEST

This archive was generated by hypermail 2.2.0 : Sun Jun 27 2010 - 17:50:01 CEST