get positive values from a vector

Hello,

From the vector {1,2,-3,-4,5} I need to get only the positive values.
Is there a way to do that except looping?

Thanks,
Bogdan
http://www.cplusplus.com/reference/algorithm/find_if/

but if you never used STL-algorithms, get a good textbook or tutorial before you encounter your first compiler error message. ;)

Ciao, Imi.
Topic archived. No new replies allowed.