Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
12 lines (9 sloc) 346 Bytes
#include <algorithm>
#include <iostream>
int main(void) {
std::cout << "max(1, 2) is: " << std::max(1, 2) << std::endl;
std::cout << "max(2, 1) is: " << std::max(2, 1) << std::endl;
std::cout << "max('a', 'z') is: " << std::max('a', 'z') << std::endl;
std::cout << "max(7.5, 4.5) is: " << std::max(7.5, 4.5) << std::endl;
return 0;
}