#include<iostream>
using namespace std;
bool cmp(const int &a,const int &b)
{
return (a > b) ;
}
int main(void)
{
int a = -999, b = 100 ;
cout << min(a, b) << endl ;
cout << min(a, b, cmp) << endl ;
cout << max(a, b) << endl ;
cout << max(a, b, cmp) << endl ;
return 0;
}
min和max函数
最新推荐文章于 2021-05-03 04:17:30 发布