(C++) std::max

January 9, 2018 · View on GitHub

 

 

 

 

 

(C++) std::max

 

Standard algorithm to get the heighest of two values. To get the lowest of two values, use std::min.

 


#include <algorithm> int main() {   const int a = 5;   const int b = 7;   const int heighest = std::max(a,b); }