Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- ubuntu
- CT
- ssl
- AWS
- nodejs
- NRMSE
- procedure
- FSL
- pytorch
- 동차좌표계
- Cost Function
- Dual energy X-ray
- EC2
- error
- ml
- Homogeneous Coordinates
- x-ray
- kernel
- git
- Map-reduce
- relaxation time
- MRI
- coursera
- object detection
- pm2
- MySQL
- Emoji
- 평가지표
- Anaconda
- https
Archives
- Today
- Total
목록Sort (1)
Pay it Forward
[C++] Sort의 Sorting Function 만들기
C++의 헤더에 포함된 sort() 함수의 Format은 다음과 같습니다 sort(/*정렬 시작 주소, 정렬 끝 주소, 정렬 시 사용하고자 하는 함수*/); 이 때, 정렬 시 사용하고자 하는 함수를 직접 만들 때 주로 사용하는 코드입니다. bool compare(const [type] & name1, const [type] & name2) { return (정렬하고자 하는 방식) } 아래는 User 라는 structure를 age 기준 오름차순으로 정렬하는 예시코드입니다. #include bool compare(struct User &a, struct User &b) { return a.age < b.age; } int main() { struct User a[10]; . . . sort(a, a + n..
Code Snippet
2020. 1. 17. 11:42