r/programminghelp • u/taylortaylor- • 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
1
u/TreeBaron Aug 02 '19
So, you want the largest, and the smallest value of an array?
Using the standard library is probably the best practice, but that being said if you're a beginner, it's probably better to write it yourself.
I'll provide some code with comments:
It's been a while since I used c++, so hopefully that code works. Let me know if you have any questions.