Hey guys.
I need help on how to find the largest/smallest position in a set of vectors. Because I'm using vector<bool> type.. the elements in my vector are either 0's or 1's.. therefore what I need to do:
1. find out what position they are at (all the 1 values)
2. find the largest position of all the values = 1 (bool vector)
3. find the smallest position of all the values = 1 (bool vector)
4. find out if any integer is in the set of positions
I have no idea on how to do this :S any help or code would be appreciated.
Thanks :)