📜  c++代码示例中的max函数

📅  最后修改于: 2022-03-11 14:44:52.233000             🧑  作者: Mango

代码示例2
// C++ program to demonstrate the use of std::max
// C++ program to demonstrate the use of std::max
#include
#include
using namespace std;
int main()
{
    // Comparing ASCII values of a and b
    cout << std::max('a','b') << "\n";
  
    // Returns the first one if both the numbers
    // are same
    cout << std::max(7,7);
  
return 0;
}