[C++]max(), min()max / min // max int M1 = std::max(2, 5); // 2개일 경우 int M2 = std::max({2, 5, 7}); // 3개 이상일 경우 리스트로 만들어 사용 // min int m1 = std::min(2, 5); // 2개일 경우 int m2 = std::min({2, 5, 7}); // 3개 이상일 2024. 3. 25.C++#cpp#algorithm#max#min