counting occurenes of values

In the last 24 hours there were 3 topics of people who had trouble counting occureces of a value in an array! I answered nicly in the firts one, less nicely in the second one, and I din't even look at the third, becouse I started making this topic. So, please listen(or, ummm, read)! Use std::count from the header <algorithm>! http://www.cplusplus.com/reference/algorithm/count/
Just because multiple people have similar questions, isn't really a reason to be rude. Just point them to the right direction, and suggest do a quick search for their problem first
Topic archived. No new replies allowed.