보라 개발 일지

정보라


🏠Profile

💻Github

📷LinkedIn

  • 분류 전체보기
    • Project
    • Research | Study
    • Unity
    • C | C++
    • DirectX | OpenGL
    • History
    • 꿀팁
  • 홈
  • 태그
  • 방명록
/ /

[C++] 최소값, 최대값 쉽게 구하는 방법

2022. 5. 11. 20:39

https://notepad96.tistory.com/57

 

C++ min, max 함수

1. min, max, minmax min, max, minmax는 algorithm 라이브러리의 구현되어 있는 함수이다. 각 함수들은 두 값을 비교하여 더 작은 값, 더 큰 값을 반환해 준다. 위 함수는보통 2개의 값만 비교하여 최대값, 최

notepad96.tistory.com

https://notepad96.tistory.com/40

 

C++ Vector 최대값, 최소값, 인덱스 구하기

1. 최대값, 최소값 vector 컨테이너에서 최대값, 최소값을 구할 경우 for문을 작성할 수도 있지만 이는 복잡하다. 그래서 algorithm 라이브러리의 있는 max_element를 사용한다면 한줄로도 간단하게 최대

notepad96.tistory.com

 

'C | C++' 카테고리의 다른 글

[C++] string 공백 단위로 자르기(split)  (0) 2022.05.12
[C++] string to int, char to int, int to string, int to char  (0) 2022.05.11
[C++] unordered_map을 value를 기준으로 정렬  (0) 2022.05.09
[Effetive C++] Chapter 1 정리  (0) 2022.04.27
[Effective C++] 기초 정리  (0) 2022.04.26

+ Recent posts

Powered by Tistory, Designed by wallel
Rss Feed and Twitter, Facebook, Youtube, Google+

티스토리툴바