Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
Standard algorithm to get the lowest of two values. To get the highest of two values, use std::max.
{
const int lowest = std::min(a,b);
}
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.