Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
Tags
- it's a good thing
- UE4
- sort함수
- end up ing
- if조건절
- counldn't have
- I'm glad
- Realtime Rendering
- gameQA
- happen to
- by until
- know
- might have p.p
- keep -ing
- ISTQB
- 제5인격
- 명절 표현
- 코로나19
- relif
- html
- metascore
- continue to
- by any chance
- 변수
- C++
- 게임QA
- 명세기반테스트
- 형변환
- for ing
- java
Archives
- Today
- Total
목록sort함수 (1)
Records rather than Memories
[C++] STL sort() 함수 다루기
특정한 데이터를 정렬하기 위해 선택정렬, 삽입정렬, 퀵정렬, 합병정렬 등 여러가지 알고리즘을 만들어 정렬할 수 있는데 사실 실제로 정렬을 수행한다고 하면 이미 구현된 정렬 라이브러리를 사용하면 된다. 하지만 이러한 정렬에 대한 명확한 이해 없이 무작정 라이브러리를 가져다 쓰는 것은 좋지 않으므로 앞서 정렬 알고리즘에 대한 이해가 필요한 것이다. - sort() 함수의 기본 사용법 1 2 3 4 5 6 7 8 9 10 11 12 13 #include #include using namespace std; int main(void) { int a[10] = {2, 7, 11, 8, 3, 10, 1, 9, 6}; sort(a, a + 10); for(int i = 0; i
Software/C
2019. 11. 30. 16:30