Re: Read a vector's components

From: Axel Naumann <Axel.Naumann_at_cern.ch>
Date: Tue, 26 Aug 2008 09:40:09 +0200


Hi Joseph,

I believe you haven't received an answer yet. You don't specify what vector you are talking about, so I assume it's the STL's. You can e.g. look at <http://en.wikipedia.org/wiki/Vector_(STL)> for how to declare and use a vector.

Cheers, Axel.

On 2008-08-24 21:10, Manungu Kiveni wrote:
> Hi all,
>
> I am working on application that need to loop ever the components of a
> vector. My question is how to declare the vector and how to know the
> number of elements in the vector for the for loop to stop. Thanks for any
> ideas and suggestion.
>
> Joseph
>
>
Received on Tue Aug 26 2008 - 09:40:13 CEST

This archive was generated by hypermail 2.2.0 : Tue Aug 26 2008 - 17:50:01 CEST