In C++, how can I find the greatest or minimum value in a vector?
Is it correct to assume that it would be similar with an array?
Do I require an iterator?
I tried max element, but I kept receiving errors.
vector<int>::const_iterator it;
it = max_element(cloud.begin(), cloud.end());
error: request for member ‘begin’ in ‘cloud’, which is of non-class type ‘int [10]’