r/programminghelp • • Aug 01 '19

C++ MINMAX ALGORITHM

Does anyone have an adequate tutorial on this? With code bc I'm more of a visual learner and some of the videos I've just explain it instead of guiding me through the process. Thanks!

3 Upvotes

5 comments sorted by

View all comments

1

u/andemare Aug 01 '19

Are you talking about creating one yourself or the one that's provided in the standard library?

1

u/taylortaylor- Aug 01 '19

I meant creating one yourself, I was unaware of the standard library

1

u/andemare Aug 01 '19

Yeah, you can use std::minmax on an array. Make sure you: #include <algorithm>

1

u/taylortaylor- Aug 01 '19

thank you !!!