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 ...READ MORE
Jun 27, 2022
in C++
by 
Nicholas
• 7,760 points 
•
936 views